|
it is a nice question ,
here are some code for you,hope it can help you!
%=========================================
clc;clear;
syms x y z
a=[5*x^2+y x*y;3*x+z y*z ];
a=char(a);
imfile='txt';
fid=fopen(strcat([imfile,'.txt']),'w');
fwrite(fid,a);
fclose(fid);
%==========================================
the result is :
matrix([[5*x^2+y,x*y],[3*x+z,y*z]]),
maybe it is not what you want, i think it is just the form problem! you can modify the code
according to the assitance document -----"fwrite.doc".
hope you can finish the work!
by the way,please show us the fanal result of you work !
i am looking forward to it!
[ 本帖最后由 yukeyyxh 于 2007-3-19 16:39 编辑 ] |
评分
-
1
查看全部评分
-
|