谁会做下面数值分析用matlab题啊,

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 02:55:37

谁会做下面数值分析用matlab题啊,
谁会做下面数值分析用matlab题啊,
 


 

谁会做下面数值分析用matlab题啊,
%% 第一张图的题目解答
clc,clear,close all
z1=2*sind(85)/(1+exp(2))
x=[2 1+2*i;-0.45 5];
z2=1/2.*(log(x+x.^(1/2)))
a=-3:.1:3;
z3=(exp(0.3.*a)-exp(0.2*a))/2*sin(a+0.3)


%% 第二张图的题目解答
A=[12 34 -4 
    34 7 87
    3 65 7];
B=[1 3 -1
    2 0 3
    3 -2 7];
A+6.*B
A-B+1
A*B
A.*B
A^3
A.^3
A/B
A\B
[A,B]
[A([1,3],:);B^2]


%% 第三张图题目解答
x=-10:.1:10
y1=x.^2;y2=cos(2*x);y3=y1.*y2
figure,plot(x,y1,'r'),hold on ,plot(x,y2,'g'),hold on ,plot(x,y3,'b')
grid on
title('第三问')
figure,subplot(311),plot(x,y1,'r'),grid on
subplot(312),plot(x,y2,'g'),grid on
subplot(313),plot(x,y3,'b'),grid on


%% 第四张图 题目解答
 









程序的详细运行过程见附件  录像11.exe