Error: 'N' undefined near line 9 column 13
Show older comments
I don't understand where is the problem of this error. Thanks for help.

4 Comments
Star Strider
on 22 Oct 2017
How are you calling your function?
João Carvalho
on 22 Oct 2017
Walter Roberson
on 22 Oct 2017
When you invoke the function just by commanding
senhx
then where are you expecting it to find a value for N ?
Robert Henson
on 22 Oct 2017
Are you typing the command
senhx
in the Command Window?
Or are you pressing the "Run" button in the editor?
Answers (1)
Steven Lord
on 22 Oct 2017
0 votes
If you try to run this function using the green triangle Run button, that will call this function with no input arguments. But this function requires you to specify its input. You can change this using the procedure described on this documentation page or by typing the function name (with input and output arguments specified) at the prompt in the Command Window.
Categories
Find more on Installing Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!