From: fuad on
while running a M-file (function), matlab stopped and displayed this message:

One or more output arguments not assigned during call to 'F:\my documents\matlab\kriterijumi.m (kriterijumi)'.

i don't understand what is going on. the function works with some data, and for some just doesn't. what does that message mean?
please help.
From: Oleg Komarov on
"fuad " <fuad_poprzenovic(a)yahoo.com> wrote in message <hm5ell$cuv$1(a)fred.mathworks.com>...
> while running a M-file (function), matlab stopped and displayed this message:
>
> One or more output arguments not assigned during call to 'F:\my documents\matlab\kriterijumi.m (kriterijumi)'.
>
> i don't understand what is going on. the function works with some data, and for some just doesn't. what does that message mean?
> please help.

There is a great tool called google which you could take advantage of:
http://www.mathworks.com/support/tech-notes/1200/1207.html#43

Oleg
From: Md Sahidullah on
Hi Fuad,

Check whether it is generating all the outputs for "some data". You can intialize the variables properly to avoid this kind of warnings.

Thanks &
Regards
Md. Sahidullah

"fuad " <fuad_poprzenovic(a)yahoo.com> wrote in message <hm5ell$cuv$1(a)fred.mathworks.com>...
> while running a M-file (function), matlab stopped and displayed this message:
>
> One or more output arguments not assigned during call to 'F:\my documents\matlab\kriterijumi.m (kriterijumi)'.
>
> i don't understand what is going on. the function works with some data, and for some just doesn't. what does that message mean?
> please help.
From: Jan Simon on
Dear Fuad!

> while running a M-file (function), matlab stopped and displayed this message:
>
> One or more output arguments not assigned during call to 'F:\my documents\matlab\kriterijumi.m (kriterijumi)'.
>
> i don't understand what is going on. the function works with some data, and for some just doesn't. what does that message mean?

Enable the debugger:
dbstop if error
Then let your program run. It stops when the error appears and you can inspect the current variables in the command window.

Good luck, Jan
From: fuad on
"Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <hm5grg$79$1(a)fred.mathworks.com>...
> "fuad " <fuad_poprzenovic(a)yahoo.com> wrote in message <hm5ell$cuv$1(a)fred.mathworks.com>...
> > while running a M-file (function), matlab stopped and displayed this message:
> >
> > One or more output arguments not assigned during call to 'F:\my documents\matlab\kriterijumi.m (kriterijumi)'.
> >
> > i don't understand what is going on. the function works with some data, and for some just doesn't. what does that message mean?
> > please help.
>
> There is a great tool called google which you could take advantage of:
> http://www.mathworks.com/support/tech-notes/1200/1207.html#43
>
> Oleg

I just didn't believe that google can digest complete error message and produce usable suggestion. my mistake, it was easier than i thought. thank you for the link, i believe i have solved the problem.