please help

please help

Post by autu » Wed, 27 Nov 2002 08:35:35



what is wrong with this code ?

function p = test(c,diff,mean,k,nonline)
syms z
m = solve('z^3+z^2=(k*diff/c));
n = m(1,1)
p = subs(n,c,diff,k)

the problem is that test(1,1,1,1,1) does not return numbers, just
symbolic solutions.

 
 
 

please help

Post by Luci » Wed, 27 Nov 2002 13:45:21


p=subs(n)

> what is wrong with this code ?

> function p = test(c,diff,mean,k,nonline)
> syms z
> m = solve('z^3+z^2=(k*diff/c));
> n = m(1,1)
> p = subs(n,c,diff,k)

> the problem is that test(1,1,1,1,1) does not return numbers, just
> symbolic solutions.