作业帮 > 综合 > 作业

matlab菜鸟求问,这个有什么问题?

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/04/25 07:49:43
matlab菜鸟求问,这个有什么问题?
t=0:0.001:3;
w1=100-1/(6)^(1/2)*exp(-2*t)*sin((6)^(1/2)*t);
w2=100-1/(7)^(1/2)*exp(-2*t)*sin((7)^(1/2)*t);
w3=100-1/(8)^(1/2)*exp(-2*t)*sin((8)^(1/2)*t);
w4=100-1/(9)^(1/2)*exp(-2*t)*sin((9)^(1/2)*t);
w5=100-1/(10)^(1/2)*exp(-2*t)*sin((10)^(1/2)*t);
w6=100-1/(11)^(1/2)*exp(-2*t)*sin((11)^(1/2)*t);
w7=100-1/(12)^(1/2)*exp(-2*t)*sin((12)^(1/2)*t);
w8=100-1/(13)^(1/2)*exp(-2*t)*sin((13)^(1/2)*t);
w9=100-1/(14)^(1/2)*exp(-2*t)*sin((14)^(1/2)*t);
w10=100-1/(15)^(1/2)*exp(-2*t)*sin((15)^(1/2)*t);
w11=100-1/(16)^(1/2)*exp(-2*t)*sin((16)^(1/2)*t);
w12=100-1/(17)^(1/2)*exp(-2*t)*sin((17)^(1/2)*t);
w13=100-1/(18)^(1/2)*exp(-2*t)*sin((18)^(1/2)*t);
w14=100-1/(19)^(1/2)*exp(-2*t)*sin((19)^(1/2)*t);
w15=100-1/(20)^(1/2)*exp(-2*t)*sin((20)^(1/2)*t);
w16=100-1/(21)^(1/2)*exp(-2*t)*sin((21)^(1/2)*t);
plot(t,w1,t,w2,t,w3,t,w4,t,w5,t,w6,t,w7,t,w8,t,w9,t,w10,t,w11,t,w12,t,w13,t,w14,t,w15,t,w16)
matlab菜鸟求问,这个有什么问题?
t=0:0.001:3;
w1=100-1/(6)^(1/2)*exp(-2*t).*sin((6)^(1/2)*t);
w2=100-1/(7)^(1/2)*exp(-2*t).*sin((7)^(1/2)*t);
w3=100-1/(8)^(1/2)*exp(-2*t).*sin((8)^(1/2)*t);
w4=100-1/(9)^(1/2)*exp(-2*t).*sin((9)^(1/2)*t);
w5=100-1/(10)^(1/2)*exp(-2*t).*sin((10)^(1/2)*t);
w6=100-1/(11)^(1/2)*exp(-2*t).*sin((11)^(1/2)*t);
w7=100-1/(12)^(1/2)*exp(-2*t).*sin((12)^(1/2)*t);
w8=100-1/(13)^(1/2)*exp(-2*t).*sin((13)^(1/2)*t);
w9=100-1/(14)^(1/2)*exp(-2*t).*sin((14)^(1/2)*t);
w10=100-1/(15)^(1/2)*exp(-2*t).*sin((15)^(1/2)*t);
w11=100-1/(16)^(1/2)*exp(-2*t).*sin((16)^(1/2)*t);
w12=100-1/(17)^(1/2)*exp(-2*t).*sin((17)^(1/2)*t);
w13=100-1/(18)^(1/2)*exp(-2*t).*sin((18)^(1/2)*t);
w14=100-1/(19)^(1/2)*exp(-2*t).*sin((19)^(1/2)*t);
w15=100-1/(20)^(1/2)*exp(-2*t).*sin((20)^(1/2)*t);
w16=100-1/(21)^(1/2)*exp(-2*t).*sin((21)^(1/2)*t);
plot(t,w1,t,w2,t,w3,t,w4,t,w5,t,w6,t,w7,t,w8,t,w9,t,w10,t,w11,t,w12,t,w13,t,w14,t,w15,t,w16)
由于矩阵是向量,对应每个元素想乘,所以用到点乘即 (.*).标量与标量以及标量与向量之间均可以实用乘法即可.希望你能明白,祝你学习愉快啊,不明白可以继续追问哈.