声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1223|回复: 1

[编程技巧] 提取系数后如何将系数存为一个数组

[复制链接]
发表于 2006-7-18 12:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
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!
回复
分享到:

使用道具 举报

发表于 2006-7-24 16:38 | 显示全部楼层

cell2str?

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-12 18:53 , Processed in 0.065913 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表