[scilab-Users] Re: ploting planck's function

Alexandre Abbes alexandre.abbes at ac-toulouse.fr
Sun Nov 27 23:14:16 CET 2011


Thank you for the answer. It is obvious, now.





Le 27/11/2011 21:28, philippe a écrit :
> Le 27/11/2011 17:21, Alexandre Abbes a écrit :
>>
>>
>> Yet, I cannot anderstand why
>>   plot(l,f(l)),
>> which is the comamnd I used before, still gives me a false result.
>
>
>
> because the way you have defined f(l), l is a 1x1 matrix but when you
> want to estimate f(l), l is a 1xn matrix so scilab is confuse with * and
> / in f definition since this operations are not "element wise" for
> matrix ... then you have two possibilities :
>
> - replace * by .*, / by ./  in f definition
> - use feval(l,f) instead of f(l)
>
> Philippe.
>
>




More information about the users mailing list