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)
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/27 20:20:46
![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)](/uploads/image/z/4514540-68-0.jpg?t=matlab%E8%8F%9C%E9%B8%9F%E6%B1%82%E9%97%AE%2C%E8%BF%99%E4%B8%AA%E6%9C%89%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98%3Ft%3D0%3A0.001%3A3%3Bw1%3D100-1%2F%286%29%5E%281%2F2%29%2Aexp%28-2%2At%29%2Asin%28%286%29%5E%281%2F2%29%2At%29%3Bw2%3D100-1%2F%287%29%5E%281%2F2%29%2Aexp%28-2%2At%29%2Asin%28%287%29%5E%281%2F2%29%2At%29%3Bw3%3D100-1%2F%288%29%5E%281%2F2%29%2Aexp%28-2%2At%29%2Asin%28%288%29%5E%281%2F2%29%2At%29%3Bw4%3D100-1%2F%289%29%5E%281%2F2%29%2Aexp%28-2%2At%29%2Asin%28%289%29%5E%281%2F2%29%2At%29%3Bw5%3D100-1%2F%2810%29)
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)
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)
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)
由于矩阵是向量,对应每个元素想乘,所以用到点乘即 (.*).标量与标量以及标量与向量之间均可以实用乘法即可.希望你能明白,祝你学习愉快啊,不明白可以继续追问哈.