Hello,

It could be easily done using following function (writtenn as a script with an example).

// ska109 - Jan (jenik) Skapa

// Department of Telecommunications

// Faculty of Electrical Engineering and Computer Science

// VSB - Technical University of Ostrava

// 17. listopadu 15/2172

// 708 33 Ostrava - Poruba

// Czech Republic

// Date: 21.12.2018

//

// Contact: ska109@vsb.cz

clear(); // Remove all variables

xdel(winsid()); // Close all graphic windows

clc; // Clear the Scilab Console

function y = heaviside(x)

[r, c] = size(x);

y = zeros(r, c);

y(x == 0) = 1/2;

y(x > 0) = 1;

endfunction

// Example

x = -10:10;

y = heaviside(x - 2); // Time-shift applied

plot2d3(x, y, color('red'));

xlabel('x'); title('y = heaviside(x - 2)');

acos (Matlab work) — Inverse cosine

acosh (Matlab work) — Inverse hyperbolic cosine

acot (Matlab work) — Inverse cotangent

acoth (Matlab work) — Inverse hyperbolic cotangent

acsc (Matlab work) — Inverse cosecant

acsch (Matlab work) — Inverse hyperbolic cosecant

all (Matlab work) — Test to decide whether all components are nonzero

point (Matlab work) — Phase edge

any (Matlab work) — Test to decide whether any nonzeros components

An individual can likewise utilize his/her panseva card as a proof of character and verification of age. Being an officially sanctioned card, it is acknowledged as ID evidence for everything from purchasing a vehicle to applying for a credit.

27-12-18, 3:37 p.m.ska10929-12-18, 11:15 a.m.AkhtarLogin to add comment