MATLAB: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
=Usage= | ==Usage== | ||
===Anonymous Functions=== | ===Anonymous Functions=== | ||
[https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html Reference] | [https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html Reference] |
Revision as of 11:50, 1 October 2019
Matlab is a commercial numerical computing language which costs $149.
Students are usually forced to use it in introductory math classes.
Unless required to use Matlab, I recommend using Python, Julia, or R which are all free and, in my opinion, more flexable.
Usage
Anonymous Functions
sqr = @(x) x.^2;
Timing Code
Reference
tic
starts a timer. toc
returns the time elapsed in seconds since the started timer.
timerVal = tic
% The program section to time.
elapsedTime = toc(timerVal)