一段matlab程序,我的电脑执行起来有些困难,寻求网友们帮忙!
要求:matlab6.5以上,硬件要求1G以上内存,主频2.5以上
程序如下,复制后粘贴到命令窗口,然后按回车即可执行,也可以把附件中的M文件下载下来执行,希望把你们的结果发到下面:
clear all
format long
t=[0 2 4 6 8 10 12 14 15.75]
a=-0.00000008084029*t.^8+0.00000539279498*t.^7-0.00015070985881*t.^6+0.00229856234852*t.^5-0.02091354491715*t.^4+0.11705294474298*t.^3-0.41093174690455*t.^2+1.28279581041565*t;
a1=cos(a);
a2=sin(a);
v=-0.00000001921871*t.^8+0.00000144827166*t.^7-0.00004688911734*t.^6+0.00084822439952*t.^5-0.00932104668570*t.^4+0.06336783057369*t.^3-0.26176110797089*t.^2+0.66745789910385*t;
sx=v.*a1;
sy=v.*a2;
plot(sx,sy)
348 Bytes, 下载次数: 5, 下载积分: 体力 -2 点
积分.rar
t =
Columns 1 through 4
0 2.000000000000000 4.000000000000000 6.000000000000000
Columns 5 through 8
8.000000000000000 10.000000000000000 12.000000000000000 14.000000000000000
Column 9
15.750000000000000
[attach]4040[/attach]
untitled.jpg.jpg (16.34 KB, 下载次数: 285)
untitled.jpg
a1 =
Columns 1 through 6
1.00000000000000 -0.01745240643698 -0.80901699436548 -0.98768834060094 -0.65605902777891 -0.06975645690869
Columns 7 through 9
0.50000008140472 0.89100669490731 0.99999999999944
a2 =
Columns 1 through 6
0 0.99984769515640 0.58778525230551 -0.15643446500358 -0.75470958127599 -0.99756405143707
Columns 7 through 9
-0.86602535678540 -0.45399016468461 0.00000105730947
sx =
Columns 1 through 6
0 -0.01169311231278 -0.68766444524370 -0.95805769193534 -0.70198317198602 -0.08021993399989
Columns 7 through 9
0.61000037947700 1.14940042313301 1.34000528682378
sy =
Columns 1 through 6
0 0.66989795575485 0.49961746448369 -0.15174143129935 -0.80753926607180 -1.14719878149340
Columns 7 through 9
-1.05655142053504 -0.58564822281274 0.00000141680028
| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |