Math, asked by SaketUpadhyay2565, 1 year ago

unit step function matlab

Answers

Answered by OS13
0
The Heaviside step function, or the unit step function, usually denoted by H or θ (but sometimes u, 1 or ), is a discontinuous function named after Oliver Heaviside (1850–1925), whose value is zero for negative argument and one for positive argument.
Answered by hukam0685
3
If you want Matlab Coding for unit step function,then it is as follows;

Program Code for unit step function:

clc;

n=input('Enter n values');

t=0:1:n-1;

y1=ones(1,n);

subplot(2,2,2);

stem(t,y1);

ylabel('Amplitude');

xlabel('unit step');

The Unit Step Function

Definition: The unit step function, 

\displaystyle{u}{\left({t}\right)}, is defined as

\displaystyle{u}{\left({t}\right)}={\left.{\left\lbrace\begin{matrix}{0}&{t}<{0}\\{1}&{t}>{0}\end{matrix}\right.}\right.}

That is, u is a function of time t, and u has value zero when time is negative (before we flip the switch); and value one when time is positive (from when we flip the switch).
Similar questions