0 votes
in Matlab by
What is the main difference between script and function in MATLAB?

1 Answer

0 votes
by

Both have got same extension as (.m). Script file type in matlab consists of series of commands. They do not take any arguments neither they return any arguments or any values. Function is like any other programming language function. It takes arguments as well as returns arguments.

Related questions

+1 vote
asked Jul 30, 2020 in Matlab by Robindeniel
0 votes
asked Aug 1, 2020 in Matlab by Robindeniel
...