An octave/MATLAB u(t) function example: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

2 November 2016

12 October 2010

  • curprev 13:3313:33, 12 October 2010Frohro talk contribs 171 bytes +171 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'