Monday, December 20, 2010

solve equation in matlab.

syms xr;
aa=0.84; % for the given spin value

ss=aa-(2/3)^0.5*xr*(4-(18*xr^2-2)^0.5);

yy=solve(ss);

mif=double(yy(2)); %%% convert the symbolic object into the real number.

No comments: