User Tools

Site Tools


matlab:matlab_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
matlab:matlab_examples [2016/05/04 01:56] – [m-files with main function] mithatmatlab:matlab_examples [2021/12/07 19:41] (current) – [m-files with "main" function] mithat
Line 31: Line 31:
 ===== m-files with "main" function ===== ===== m-files with "main" function =====
 Ref.((Recktenwald, Gerald. "MATLAB Functions -- Basic Features." MATLAB Functions -- Basic Features. Accessed April 30, 2016. http://web.cecs.pdx.edu/~gerry/MATLAB/programming/basics.html.)) Ref.((Recktenwald, Gerald. "MATLAB Functions -- Basic Features." MATLAB Functions -- Basic Features. Accessed April 30, 2016. http://web.cecs.pdx.edu/~gerry/MATLAB/programming/basics.html.))
 +
 +Note: On some platforms you may receive a warning if the name of the file (without extension) doesn't match the name of the first function defined in the file. 
 +
 <file matlab compute_trapezoid.m> <file matlab compute_trapezoid.m>
-function main+function main()
     area1 = traparea(1,2,3)     area1 = traparea(1,2,3)
     disp(area1)     disp(area1)
matlab/matlab_examples.1462326997.txt.gz · Last modified: 2016/05/04 01:56 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki