Posted By:
24 Mar, 2013 1:11 pm PDT

Create a function or not in matlab

I want to execute a script. Should I execute it as a function or should I just run in the command window??

which one ll be better? or advantages?

Attachment:None


Most of the times, it is better to use function. A function in matlab ll take input and give the output. All the other variables inside the function are not stored, so it ll not populate the matlab variables list

Please see the video for details

Was it useful?  




Please login to reply to this problem.



Related Problems on Fixoncloud