How do you create a function file in MATLAB?

Pham Quỳnh

New member
How do you create a function file in MATLAB?
A. Begin m-file with function definition
B. Begin script file with function definition
C. There is no such thing called function file
D. An m-file is only a function file
 
Answer: a
Explanation: If an m-file starts with a function definition, it becomes a function file. This file can be called to generate a desired output multiple times. As MATLAB allows the making of such files, complicated big programs can be broken down to simplify the nature of the entire MATLAB program.
 

Tìm kiếm

Back
Top