MATLAB: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
Matlab is a commercial numerical computing language which costs $149.<br> | |||
Students are usually forced to use it in introductory math classes.<br> | |||
Unless required to use Matlab, I recommend using Python, Julia, or R which are all free and, in my opinion, more flexable.<br> | |||
Revision as of 10:00, 29 September 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)