when this error comes----'Output argument "f" (and maybe others) not assigned during call to'
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ignatius Fernandes
am 28 Mär. 2013
Kommentiert: edy daher
am 16 Jul. 2020
I am abit new to matlab.. wnat to know when i get an error of this type.. "Output argument "f" (and maybe others) not assigned during call to..." Any answer will be of great help..
1 Kommentar
Jan
am 28 Mär. 2013
Please post the line, which causes the error also. Then we do not have to guess the details for an answer. Thanks.
Akzeptierte Antwort
Matt J
am 28 Mär. 2013
Bearbeitet: Matt J
am 28 Mär. 2013
It means you called a function and requested an output that was never created in the workspace of the function. Here's a simple example
function out=test(in)
in+1; %out not created
end
Now if I do the following, I get an error because I've asked for an output 'z', but a value for this is never created inside the function
>> z=test(1)
Error in test (line 3)
in+1; %out not created
Output argument "out" (and maybe others) not assigned during call to "C:\Users\mjacobson\Documents\mwjtree\test\test.m>test".
Notice, however, that calling the function without output arguments
>> test(1)
gives no errors.
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!