Re: ??? one or more output arguments not assigned...



Thanks to you all for your help.I realised I was getting the error
because of using a different variable inside my function.The function
declaration was

function under_sampled = somefunction(x,y,z);

but inside the function i used under_sample not under_sampled.I l be
careful with my variables next time.

Thanks

Jeroen wrote:
>
>
> Clif wrote:
>> I was running a function and aftter execution I get the
following
>> message;
>>
>> ??? One or more output arguments not assigned during call to
>> 'E:\ELEM023 labs\QMUL_undersample.m (QMUL_undersample)'.
>>
>> My function takes in only one argument.What is the meaning of
the
>> message?
>>
>> Thanks
>
> This is error occurs if you have:
>
> y=myfunc(a)
>
> and there's no line 'y=whatever;' in the function. So the output
> argument is not assigned a value. Check your code.
>
> Jeroen
>
.



Relevant Pages

  • Re: General remarks on restrict
    ... qualification *does* carry a meaning for the human programmer who uses ... This means that a function type with restrict-qualified parameters is compatible with a similar function type that declares the parameters without the restrict qualifier. ... In a C program, the names and qualifiers of parameters in a function declaration are meaningless, in the sense that a compatible definition is free to declare the parameters with different names and qualifiers, and any semantics associated with qualifiers depend on the qualifiers used in the definition, not the ones used in the declaration. ... Does the standard say anywhere that the qualifiers in the synopsis of a standard library function carry more meaning than they do in an identically looking declaration in a C program? ...
    (comp.std.c)
  • Re: A DECLARATION OF MEANING
    ... > is just a declaration of meaning and not a thesis. ... If we define fitness as being that which is maximised by the action of ... Note that John Edser wrote: ...
    (sci.bio.evolution)
  • Re: If you could change the C or C++ or Java syntax, what would you like different?
    ... declaration quite late and thinking it rather odd and fussy. ... meaning should be documented. ... or they were and the programmer was ... Suppose you have multiple ...
    (comp.lang.c)
  • Re: A DECLARATION OF MEANING
    ... >> of meaning for all ongoing discussion. ... >> within this declaration I will explicitly acknowledge ... >> A) What is the purpose ... This form is not a debate. ...
    (sci.bio.evolution)
  • Re: General remarks on restrict
    ... the use of restrict to qualify parameters in a function declaration ... It might not carry a meaning that the compiler can enforce, ... The restrict qualification conveys the information that the function ... The restrict keyword in the declaration does not convey anything at all. ...
    (comp.std.c)