To solve this file it says (Attempted to access x(2); index out of bounds because numel(x)=1) Can any one of you please tell me whats the problem... Thank you !
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I attached the m.file ..
1 Comment
Niklas Nylén
on 6 Feb 2014
Please format your code so that it is possible to read (copy it from matlab, paste it here, mark it and press the button "{} Code" above the text box.
Answers (1)
Walter Roberson
on 6 Feb 2014
0 votes
You have not given us any indication of what ngg will be, and you have not shown us any reason to expect that ngg is no larger than length(x)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!