octave:octave
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
octave:octave [2008/06/25 10:00] – deva | octave:octave [2008/07/11 17:30] – deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Octave===== | + | =====Octave |
====if then else==== | ====if then else==== | ||
<code matlab> | <code matlab> | ||
Line 28: | Line 28: | ||
a = a + 1; | a = a + 1; | ||
end; | end; | ||
+ | </ | ||
+ | |||
+ | ====switch case==== | ||
+ | <code matlab> | ||
+ | yesno = " | ||
+ | |||
+ | switch yesno | ||
+ | case {" | ||
+ | value = 1; | ||
+ | case {" | ||
+ | value = 0; | ||
+ | otherwise | ||
+ | error (" | ||
+ | endswitch | ||
</ | </ | ||
octave/octave.txt · Last modified: 2009/04/23 13:54 by deva