jifang29 发表于 2006-7-18 12:05

提取系数后如何将系数存为一个数组

clc;clear
syms b
f=sym('1301357606610903/18889465931478580854784-43540672768902124872124725441/967140655691703339764940800000*b^16+3401312748766384440341791801/15111572745182864683827200000*b^12+387011004225444114822848294903/15474250491067253436239052800000*b^20-6218714388937809712408308719/193428131138340667952988160000*b^18+35188584258554407/4951760157141521099596496896*b^22+53258682559699611/316912650057057350374175801344*b^25-71008380629329/75557863725914323419136*b^3-192923650487043301/309485009821345068724781056*b^15+4835703203821199316772707/19342813113834066795298816*b^11+1924005462922899935833179729/12089258196146291747061760000*b^13+70863839200240270352169051/944473296573929042739200000*b^8+2267642645416083580293525257/30223145490365729367654400000*b^14+5030834443073177/39614081257132168796771975168*b^26-61505847837251239/1237940039285380274899124224*b^19+120250340206806163653544319/755578637259143234191360000*b^9-2565340579919152408414141097/48357032784585166988247040000*b^17-10020861612287178050548537/188894659314785808547840000*b^5+1309538192737223/604462909807314587353088*b^7-121300514229781519/79228162514264337593543950336*b^23-3036483410887397337307153/94447329657392904273920000*b^4-6324658217845313/633825300114114700748351602688*b^27-88239486268804663/79228162514264337593543950336*b^24-10630051167800898743589071/236118324143482260684800000*b^6+1941157118455467384973076101/7555786372591432341913600000*b^10+1970181573122460693698251118121/61897001964269013744956211200000*b^21-5551265592356609/633825300114114700748351602688*b^28+5905325209780179973804973/236118324143482260684800000*b^2');
f1=maple('sort',f,b)
N=maple('degree',f1,b);
N=eval(N);
for i=0:N-1
temp=maple('coeff',f1,b,N-i);
A{1,i+1}={temp};
end
celldisp(A)

运行以上程序后我想将A的值另存为一个数组,,如何实现,,请高手指教,,谢谢1!

dy2006 发表于 2006-7-24 16:38

cell2str?

页: [1]
查看完整版本: 提取系数后如何将系数存为一个数组