Exercise 1.21: User defined function

Open the "MATLAB Editor/Debugger" via the menu "File$ \setminus$ New$ \setminus$ M-file" and enter the following function $ f$ :
function y=f(x)
y = x.^2+exp(x);
Save this function under the name `f.m'.
Where is the file `f.m' placed?



Previous      Next      Up      Answer


Esteur 2010-03-22