Question: Trying to get output of allvalues into MATLAB code

Have been using Maple on and off the last couple years, and am stuck on trying to get the output of a symbolic polynomial solution into MATLAB code.  

The original equation I am trying to solve (for lambda):

fl := t^2*lambda^4/pi+K*lambda^3/pi-4*pi/(3*(-nu^2+1)) = 0

And the way I am attempting to solve it in Maple: 

f1 := RootOf(fl = 0, lambda):

res := allvalues(f1):

 

I won't put the entire output of that last expression here :P.

 

However upon attempting to convert to MATLAB code, I get an error:

> Matlab(res);
Error, (in Translate) options [-(1/4)*(-3*K+3*K*nu^2)/(3*t^2*nu^2-3*t^2)+(1/12)*3^(1/2)*((-3*K^2*(pi^2*(9*K^2+((-1024*pi^2*t^6-81*K^4+81*K^4*nu^2)/(-1+nu^2))^(1/2))*(-1+nu^2)^2)^(1/3)+3*K^2*(pi^2*(9*K^2+((-1024*pi^2*t^6-81*K^4+81*K^4*nu^2)/(-1+nu^2))^(1/2))*(-1+nu^2)^2)^(1/3)*nu^2+4*2^(1/3)*(pi^2*(9*K^2+((-1024*pi^2*t^6-81*K^4+81*K^4*nu^2)/(-1+nu^2))^(1/2))*(-1+nu^2)^2)^(2/3)*t^2-32*pi^2*2^(2/3)*t^4+32*pi^2*2^(2/3)*t^4*nu^2)/((pi^2*(9*K^2+((-1024*pi^2*t^6-81*K^4+81*K^4*nu^2)/(-1+nu^2))^(1/2))*(-1+nu^2)^2)^(1/3)*(-1+nu^2)))^(1/2)/t^2-(1/12)*(-(18*K^2*(pi^2*(9*K^2+((-1024*pi^2*t^6-81*K^4+81*K^4*nu^2)/(-1+nu^2))^(1/2))*(-1+nu^2)^2)^(1/3)*((-3*K...
 

 

I'm guessing it's something to do with the fact that the allvalues() funciton spits out four answers (and I want to examine them one at a time in MATLAB to know which one is right for me).

 

Any thoughts?

 

B

Please Wait...