ploting planck's function
philippe
rouxph.22 at gmail.com
Sun Nov 27 21:28:10 CET 2011
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