What does the error outpur argument not assigned during call mean?
Ältere Kommentare anzeigen
http://imageshack.us/photo/my-images/850/y8lj.jpg/ http://imageshack.us/photo/my-images/401/b8dk.jpg/
Please see the above images. I created a simple function in which I calculated values of array members by using variables defined in the calling function. It worked. I applied the same logic here, but it shows this error.
Antworten (1)
Walter Roberson
am 26 Aug. 2013
0 Stimmen
Suppose you were to pass in 1 for m. Then because your second loop has an upper bound of m-1, that would be an upper bound of 1-1=0 and so would not execute at all, so you would not have assigned a value to "a". Likewise your third loop goes from 2:m so if m was 1, the loop would not be done at all, leaving another variable never assigned to.
2 Kommentare
Walter Roberson
am 26 Aug. 2013
You have not shown us what value you are passing in for "n"
At the command line, give the command
dbstop if error
and then run your program. When it stops with the error, display the value of n that the routine has received.
Kategorien
Mehr zu Images finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!