Thursday, 10 August 2017

octave learning note -- loop, functions





how to do for loop


disp(xx) is the print function






how to create a function:   save the function into a xx.m file then call it in the same folder, or you can add the folder into path, then you can call it on any places.



octave functions can return multi values.


cost function











No comments:

Post a comment