Now move a step ahead towards high level programming in MATLAB:
Is it possible to make large programs & store our codeings on MATLAB?????
Answer is YES........
How???????
with the help of editor
Editors: editors are use for store the cods or set of instructions. we can run our code or program stored in editor any time. editor create a M-File with the extension " .m ".
to open editor just type " edit " on your command window, you will get a new window.
There are two types of M-File:
- Script Files
- Function File
to call any script file just type the name of file on command window.
Function File: MATLAB has many inbuilt functions like sin, cos etc. but some time we need a function which is not inbuilt in MATLAB. to create such functions we also use editors. once we create a function, we can call it any time in our program.
always remember the name of any M-File must not be same as any inbuilt function or command in MATLAB.