- 博客(6)
- 收藏
- 关注
原创 考试必备模板6
考试必备模板6score=floor(rand(6,5)*50)+50SumHang=sum(score’)meanLie=mean(score)meanHang=mean(score’)a=meanHang’stdLie=std(score)stdHang=std(score’)youliang=score>=80youliangHang=sum(youliang’)%youliangHang=sum(youliang’)/5%youliangLie=sum(youliang)
2020-12-16 16:47:19
52
原创 考试必备模板5
考试必备模板5score=rand*100m=fix(score/10);switch(m)case {10,9}disp(“优”);case (8)disp(“良”);case (7)disp(“中”);case (6)disp(“及格”);case {5,4,3,2,1,0}disp(“不及格”);endscore = 67.1431及格score = 88.7771良使用if语句score=rand*100if score>=90disp(“优”);
2020-12-16 16:46:17
81
原创 考试必备模板4
考试必备模板4void Button1Click(object sender, EventArgs e){int a,b,c;double d;a=int.Parse(textBox1.Text);b=int.Parse(textBox2.Text);c=int.Parse(textBox3.Text);d = a+ Math.Pow(b,c);MessageBox.Show( d.ToStvoid Button1Click(object sender, EventArgs e){i
2020-12-16 16:43:16
84
原创 考试必备模板3
考试必备模板3x1=[78.0 113.5 130.0 154.0 169.0 187.0 206.0 214.0]’;x2=[1.0 3.2 4.8 8.4 12.0 18.5 27.5 32.0]’;y=[1.5 6.0 10.0 20.0 30.0 50.0 80.0 100.0]’;x=[ones(8,1),x1,x2];b=regress(y,x);b’ans = 1×39.4397 -0.1384 3.6796∴Y 关于 X1、X2 的二元线性回归方程为Y=9.439
2020-12-16 16:42:02
41
原创 考试必备模板2
考试必备模板2load DATA9.TXT;data=DATA9;fs=10000;dt=1/fs;N=length(data);t=[0:N-1]*dt;y1=data(:,2);y2=data(:,3);y3=data(:,4);y4=data(:,5);y5=data(:,6);y6=data(:,7);y7=data(:,8);y8=data(:,9);figure(1);plot(t,y1,‘r’);grid on;hold on;plot(t,y6,‘b’)
2020-12-16 16:40:31
76
原创 考试必备模板1
(考试必备模板1)fs=1000;t=0:1/fs:1;x=2sin(2pi20t)+2sin(2pi100t);y=x+1*randn(size(t));plot(y(1:50));Y=fft(y,256);Pyy=Y.conj(Y)/256;f=fs/256(0:127);figure(2);plot(f,Pyy(1:128));xlabel(‘Freguency(HZ)’)[b,a]=ellip(4,0.1,40,[15 25]*2/fs);sf=filter(b,a,y);
2020-12-16 16:39:03
58
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人