An octave/MATLAB u(t) function example: Difference between revisions
Jump to navigation
Jump to search
(Created page with 'To make a unit step function in Octave, put the following in a file called u.m. This also works in MATLAB. function junk = u(time) junk=.5*(sign(time)+1); endfunction') |
m (Frohro moved page A u(t) function example to An octave/MATLAB u(t) function example: To make the front page more uniform) |
(No difference)
|
Latest revision as of 19:08, 2 November 2016
To make a unit step function in Octave, put the following in a file called u.m. This also works in MATLAB.
function junk = u(time) junk=.5*(sign(time)+1); endfunction