Aaron's Octave Assignment: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| Aaron.boyd (talk | contribs)  Created page with 'Just like C++ Octave and Matlab recognize if statements.  if (%your condition%)    %your command%; else    %your command%; end  More complex systems can use the elseif command  i…' | 
| (No difference) | 
Revision as of 10:35, 4 October 2010
Just like C++ Octave and Matlab recognize if statements. if (%your condition%)
%your command%;
else
%your command%;
end
More complex systems can use the elseif command
if (%condition%) elseif (%condition%)
%commands%;
elseif(%condition%)
%commands%;
else(%condition%)
%commands%;
end
for instance
if (a=b)
t = -1;
elseif (a>b)
t = -2;
else
t = 0;
end