MATLAB scripts, including live scripts, can now contain code to define functions as of R2016b. These are referred to as local functions. If you wish to reuse code within a script, local functions are useful. You can avoid creating and keeping separate function files by using local functions.
You may use from the command prompt. Theme. @(n) sin(2*pi*t(n)); Note that until it is supplied as an argument to another function, this function will only be usable within that scope.
Learner's Ratings
4.7
Overall Rating
82%
9%
4%
0%
5%
Reviews
A
Ayush Sinha
5
It's a great course, the curriculum is ideal. Very helpful too.
S
Sanjid Ahmed Sany
5
Excellent explanation sir.
S
Sanjid Ahmed Sany
5
Excellent explanation sir.
A
Akash Gupta
5
Excellent
N
Navin Kumar
5
Why payment processing time show technical difficulties.
A
Aanshika priya
5
ITS A AWESOME
A
Ashnarayan Kumar Sah
5
good
S
Shivayogi Alligidad
5
Nice teaching. ease to understand
B
Bibash Adhikari
5
Please make several other courses like AutoCAD Electrical free to learn so that many people can afford to learn for free. Really loved your effort of teaching to us.
Y
Yogesh Narayanrao Zade
5
I really like the Teacher and his teaching style... overall its a best course 👍
Share a personalized message with your friends.