octave:octave
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
octave:octave [2008/07/11 17:30] – deva | octave:octave [2008/08/06 15:45] – deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Octave syntax and library overview===== | =====Octave syntax and library overview===== | ||
+ | |||
+ | ====function==== | ||
+ | <code matlab> | ||
+ | function retval = myfunction(param1, | ||
+ | retval = param1 + param2; | ||
+ | end; | ||
+ | </ | ||
+ | |||
+ | ====string array==== | ||
+ | <code matlab> | ||
+ | myarray = { ' | ||
+ | |||
+ | </ | ||
+ | |||
====if then else==== | ====if then else==== | ||
<code matlab> | <code matlab> | ||
Line 39: | Line 53: | ||
case {" | case {" | ||
value = 0; | value = 0; | ||
+ | case " | ||
+ | value = 42; | ||
otherwise | otherwise | ||
error (" | error (" | ||
endswitch | endswitch | ||
</ | </ | ||
+ | Note: In matlab the '' | ||
====Links==== | ====Links==== |
octave/octave.txt · Last modified: 2009/04/23 13:54 by deva