How does MATLAB help in passing function arguments?

Tâm Tây

New member
How does MATLAB help in passing function arguments?
A. By call by value and call by reference
B. Only by call by value
C. Only by call by reference
D. By call by address
 
Answer: a
Explanation: Like C, MATLAB allows to pass almost all arguments by value. But, if the argument passed into the function is only for mathematical purpose then it is passed as a reference. This helps in saving the memory reserved for the original value of the argument.
 

Tìm kiếm

Back
Top