??? input argument "n" is not defined
??? input argument "n" is not defined
(OP)
Dear Friends
I have written Function f(n) in Matlab m-file and when I am trying to call f(n) (earlier writng n=1) Matlab tells me: "???input argument "n" is not defined"
Could any body help me?
best regards
zbik
My function looks like this
function g=f(n)
g=n+1
I have written Function f(n) in Matlab m-file and when I am trying to call f(n) (earlier writng n=1) Matlab tells me: "???input argument "n" is not defined"
Could any body help me?
best regards
zbik
My function looks like this
function g=f(n)
g=n+1





RE: ??? input argument "n" is not defined
2 – I’m not sure if it makes a difference to y our question, but I thought an end statement is required at the end of a function.
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
RE: ??? input argument "n" is not defined
=====================================
Eng-tips forums: The best place on the web for engineering discussions.