作业1数学建模.docx
- 文档编号:27914325
- 上传时间:2023-07-06
- 格式:DOCX
- 页数:15
- 大小:31.66KB
作业1数学建模.docx
《作业1数学建模.docx》由会员分享,可在线阅读,更多相关《作业1数学建模.docx(15页珍藏版)》请在冰豆网上搜索。
作业1数学建模
班级:
19313212号学号:
20131001842罗开华
作业1
Togetstarted,selectMATLABHelporDemosfromtheHelpmenu.
>>(15*19+52+9/2-55)/28*99
ans=1.0130e+003
>>a=56+0.888i
a=56.0000+0.8880i
>>conj(a)
ans=56.0000-0.8880i
>>real(a)
ans=56
>>imag(a)
ans=0.8880
>>abs(a)
ans=56.0070
>>angle(a)
ans=0.0159
>>1/0
Warning:
Dividebyzero.
ans=
Inf
>>0/0
Warning:
Dividebyzero.
ans=
NaN
>>sqrt(9)
ans=3
>>ceil(8)
ans=8
>>ceil(5.2)
ans=6
>>fix(5.8)
ans=5
>>a=[123;456;789]
a=
123
456
789
diag(a)
>>a=[368;689;861]
a=
368
689
861
>>a=[368;689;861]
a=
368
689
861
>>diag(a)
ans=
3
8
1
>>tril(a)
ans=
300
680
861
>>triu(a)
ans=
368
089
001
>>rot90(a)
ans=
891
686
368
>>x=[9,8,8,8,;9,6,9,8;7,8,9,5;8,5,5,9]
x=
9888
9698
7895
8559
>>max(a)
ans=
889
>>[xm,i]=max(a)
xm=
889
i=
322
>>mean(x)
ans=
8.25006.75007.75007.5000
>>x(9)
ans=
8
>>x([659])
ans=
688
>>x(10:
end)
ans=
9958859
>>x(10:
-1:
1)
ans=
9858688799
>>x(6)=1000
x=
9888
9100098
7895
8559
x=
Columns1through6
997881000
Columns7through12
889958
Columns13through15
859
>>x(8)=5
x=
Columns1through6
997881000
Columns7through12
859958
Columns13through15
859
>>x=(1:
0.1:
7)
x=
Columns1through7
1.00001.10001.20001.30001.40001.50001.6000
Columns8through14
1.70001.80001.90002.00002.10002.20002.3000
Columns15through21
2.40002.50002.60002.70002.80002.90003.0000
Columns22through28
3.10003.20003.30003.40003.50003.60003.7000
Columns29through35
3.80003.90004.00004.10004.20004.30004.4000
Columns36through42
4.50004.60004.70004.80004.90005.00005.1000
Columns43through49
5.20005.30005.40005.50005.60005.70005.8000
Columns50through56
5.90006.00006.10006.20006.30006.40006.5000
Columns57through61
6.60006.70006.80006.90007.0000
>>x=linspace(0,1,100)
x=
Columns1through7
00.01010.02020.03030.04040.05050.0606
Columns8through14
0.07070.08080.09090.10100.11110.12120.1313
Columns15through21
0.14140.15150.16160.17170.18180.19190.2020
Columns22through28
0.21210.22220.23230.24240.25250.26260.2727
Columns29through35
0.28280.29290.30300.31310.32320.33330.3434
Columns36through42
0.35350.36360.37370.38380.39390.40400.4141
Columns43through49
0.42420.43430.44440.45450.46460.47470.4848
Columns50through56
0.49490.50510.51520.52530.53540.54550.5556
Columns57through63
0.56570.57580.58590.59600.60610.61620.6263
Columns64through70
0.63640.64650.65660.66670.67680.68690.6970
Columns71through77
0.70710.71720.72730.73740.74750.75760.7677
Columns78through84
0.77780.78790.79800.80810.81820.82830.8384
Columns85through91
0.84850.85860.86870.87880.88890.89900.9091
Columns92through98
0.91920.92930.93940.94950.95960.96970.9798
Columns99through100
0.98991.0000
>>a=[]
a=
[]
>>zeros(4,4)
ans=
0000
0000
0000
0000
>>ones(5)
ans=
11111
11111
11111
11111
11111
>>rand(3,8)
ans=
Columns1through7
0.95010.48600.45650.44470.92180.40570.4103
0.23110.89130.01850.61540.73820.93550.8936
0.60680.76210.82140.79190.17630.91690.0579
Column8
0.3529
0.8132
0.0099
>>a=1:
7,b=1:
0.2:
3
a=
1234567
b=
Columns1through7
1.00001.20001.40001.60001.80002.00002.2000
Columns8through11
2.40002.60002.80003.0000
>>c=[ba]
c=
Columns1through7
1.00001.20001.40001.60001.80002.00002.2000
Columns8through14
2.40002.60002.80003.00001.00002.00003.0000
Columns15through18
4.00005.00006.00007.0000
>>a=1;1;10
ans=
10
>>b=0.2:
0.1:
2
b=
Columns1through7
0.20000.30000.40000.50000.60000.70000.8000
Columns8through14
0.90001.00001.10001.20001.30001.40001.5000
Columns15through19
1.60001.70001.80001.90002.0000
>>a=1:
1:
10
a=
12345678910
>>b=0.1:
0.1:
1
b=
Columns1through7
0.10000.20000.30000.40000.50000.60000.7000
Columns8through10
0.80000.90001.0000
>>a=1:
1:
20
a=
Columns1through12
123456789101112
Columns13through20
1314151617181920
>>b=0:
2:
40
b=
Columns1through12
0246810121416182022
Columns13through21
242628303234363840
>>a=1:
1:
10
a=
12345678910
>>b=0:
10:
90
b=
0102030405060708090
>>a+b
ans=
11223344556677889100
>>a-b
ans=
1-8-17-26-35-44-53-62-71-80
>>a.*b
ans=
02060120200300420560720900
>>a.^2
ans=
149162536496481100
>>a'
ans=
1
2
3
4
5
6
7
8
9
10
>>t=0:
0.01:
1
t=
Columns1through7
00.01000.02000.03000.04000.05000.0600
Columns8through14
0.07000.08000.09000.10000.11000.12000.1300
Columns15through21
0.14000.15000.16000.17000.18000.19000.2000
Columns22through28
0.21000.22000.23000.24000.25000.26000.2700
Columns29through35
0.28000.29000.30000.31000.32000.33000.3400
Columns36through42
0.35000.36000.37000.38000.39000.40000.4100
Columns43through49
0.42000.43000.44000.45000.46000.47000.4800
Columns50through56
0.49000.50000.51000.52000.53000.54000.5500
Columns57through63
0.56000.57000.58000.59000.60000.61000.6200
Columns64through70
0.63000.64000.65000.66000.67000.68000.6900
Columns71through77
0.70000.71000.72000.73000.74000.75000.7600
Columns78through84
0.77000.78000.79000.80000.81000.82000.8300
Columns85through91
0.84000.85000.86000.87000.88000.89000.9000
Columns92through98
0.91000.92000.93000.94000.95000.96000.9700
Columns99through101
0.98000.99001.0000
>>gridonxlabel('xzhou');
ylabel('yzhou');
title('sinandcos')
>>x=-2*pi:
0.01:
2*pi;
>>r=5*(1+cos(x));
>>x=-2*pi:
0.01:
2*pi;
>>r=5*(1+cos(3*x+pi/2));
>>polar(x,r)
>>x=-8:
0.2:
4;
>>y1=2.^x;
>>y2=(1/5).^x;
>>plot(x,y1,x,y2);
>>axis([-4,4,0,4])
t=0:
0.1:
10*pi;
x=2*cos(t);
y=2*sin(t);
y=2*sin(t);
z=0.5*t;
plot3(x,y,z)
图片做了缩小处理
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 作业 数学 建模
![提示](https://static.bdocx.com/images/bang_tan.gif)