matlab:matlab_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
matlab:matlab_examples [2016/05/01 03:52] – [m-file with main function] mithat | matlab:matlab_examples [2016/05/01 03:57] – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[http:// | + | ====== MATLAB m-file Examples ====== |
===== Simple script ===== | ===== Simple script ===== | ||
Line 16: | Line 16: | ||
===== Function m-file ===== | ===== Function m-file ===== | ||
+ | Ref.(((Recktenwald, | ||
<file matlab traparea.m> | <file matlab traparea.m> | ||
function area = traparea(a, b, h) | function area = traparea(a, b, h) | ||
Line 30: | Line 30: | ||
===== m-files with " | ===== m-files with " | ||
+ | Ref.(((Recktenwald, | ||
<file matlab compute_trapezoid.m> | <file matlab compute_trapezoid.m> | ||
function main | function main | ||
Line 48: | Line 48: | ||
</ | </ | ||
+ | Ref.((Unknown)) | ||
<file matlab quads.m> | <file matlab quads.m> | ||
function main() | function main() | ||
Line 71: | Line 72: | ||
end | end | ||
</ | </ | ||
+ | |||
===== Returning multiple values ===== | ===== Returning multiple values ===== | ||
+ | Ref.(((Recktenwald, | ||
<file matlab c_to_p.m> | <file matlab c_to_p.m> | ||
function main | function main |
matlab/matlab_examples.txt · Last modified: 2021/12/07 19:41 by mithat