t=0:0.1:100y=15.62*(0.01+2*exp(2.52*t).*((-5.22)*10^(-3)*cos(9.45*t)-1.39*10^(-3)*sin(9.45*t)))-10.93*(5.22*10^(-3)+2*exp(7.56*t).*(5.58*10^(-5)*cos(28.35*t)-1.48*10^(-5)*sin(28.35*t))-5.89*10^(-3)*exp(1.29*t)+5.56*10^(-3)*exp(13.8*t))+8.69*((-2.56)*

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 03:45:50
t=0:0.1:100y=15.62*(0.01+2*exp(2.52*t).*((-5.22)*10^(-3)*cos(9.45*t)-1.39*10^(-3)*sin(9.45*t)))-10.93*(5.22*10^(-3)+2*exp(7.56*t).*(5.58*10^(-5)*cos(28.35*t)-1.48*10^(-5)*sin(28.35*t))-5.89*10^(-3)*exp(1.29*t)+5.56*10^(-3)*exp(13.8*t))+8.69*((-2.56)*

t=0:0.1:100y=15.62*(0.01+2*exp(2.52*t).*((-5.22)*10^(-3)*cos(9.45*t)-1.39*10^(-3)*sin(9.45*t)))-10.93*(5.22*10^(-3)+2*exp(7.56*t).*(5.58*10^(-5)*cos(28.35*t)-1.48*10^(-5)*sin(28.35*t))-5.89*10^(-3)*exp(1.29*t)+5.56*10^(-3)*exp(13.8*t))+8.69*((-2.56)*
t=0:0.1:100
y=15.62*(0.01+2*exp(2.52*t).*((-5.22)*10^(-3)*cos(9.45*t)-1.39*10^(-3)*sin(9.45*t)))
-10.93*(5.22*10^(-3)+2*exp(7.56*t).*(5.58*10^(-5)*cos(28.35*t)-1.48*10^(-5)*sin(28.35*t))
-5.89*10^(-3)*exp(1.29*t)+5.56*10^(-3)*exp(13.8*t))
+8.69*((-2.56)*10^(-3)*exp(1.29*t)+2.56*10^(-3)*exp(13.8*t))
plot(t,y,'-')
title('位移功率谱密度曲线')
xlabel('频率 rad/s')
ylabel('锚索中间位移功率谱 (m2*s)')
legend('1阶')
这个matlab程序怎么调啊?求大神指教,

t=0:0.1:100y=15.62*(0.01+2*exp(2.52*t).*((-5.22)*10^(-3)*cos(9.45*t)-1.39*10^(-3)*sin(9.45*t)))-10.93*(5.22*10^(-3)+2*exp(7.56*t).*(5.58*10^(-5)*cos(28.35*t)-1.48*10^(-5)*sin(28.35*t))-5.89*10^(-3)*exp(1.29*t)+5.56*10^(-3)*exp(13.8*t))+8.69*((-2.56)*
不知道y的表达式是怎样的 我就只改了括号,都是小问题,仔细点就行了
1:第一行和第五行最后加个分号,不然t和y就会输出在主界面了
2:第三行最后多个括号,第四行最后少个括号
如下:
t=0:0.1:100;
y=15.62*(0.01+2*exp(2.52*t).*((-5.22)*10^(-3)*cos(9.45*t)-1.39*10^(-3)*sin(9.45*t)))
-10.93*(5.22*10^(-3)+2*exp(7.56*t).*(5.58*10^(-5)*cos(28.35*t)-1.48*10^(-5)*sin(28.35*t)))
-5.89*10^(-3)*exp(1.29*t)+5.56*10^(-3)*exp(13.8*t)
+8.69*((-2.56)*10^(-3)*exp(1.29*t)+2.56*10^(-3)*exp(13.8*t));
plot(t,y,'-')
title('位移功率谱密度曲线')
xlabel('频率 rad/s')
ylabel('锚索中间位移功率谱 (m2*s)')
legend('1阶')
原图:

放大图:

[T,Y]=ode45(@rigid,[0 1],[rand(15,1)]);plot(T,Y(:,1),'-',T,Y(:,2),'-.',T,Y(:,3),'.',T,Y(:,4),'-',T,Y(:,5),'-.',T,Y(:,6),'.',T,Y(:,7),'-',T,Y(:,8),'-.',T,Y(:,9),'.',T,Y(:,10),'-',T,Y(:,11),'-.',T,Y(:,12),'-.',T,Y(:,13),'.',T,Y(:,14),'-',T,Y(:,15),'.') t=0:0.1:100y=15.62*(0.01+2*exp(2.52*t).*((-5.22)*10^(-3)*cos(9.45*t)-1.39*10^(-3)*sin(9.45*t)))-10.93*(5.22*10^(-3)+2*exp(7.56*t).*(5.58*10^(-5)*cos(28.35*t)-1.48*10^(-5)*sin(28.35*t))-5.89*10^(-3)*exp(1.29*t)+5.56*10^(-3)*exp(13.8*t))+8.69*((-2.56)* y=100t^2-t^3(0小于t小于100),求函数最大值 y=-t×t×t+t(0<t<1)的最大值. 已知t >0,则函数y =(t*t-4t+1)/t的最小值 matlab中t=linspace(0,2*pi,100);x=[t;t]';y=[sin(t);cos(t)]';plot(x,y), y=(t^2-t+1) / (t^2+t+1) .t等于多少时,y取到0 微分方程 矩阵 x'(t)=x(t)+y(t)+2t y'(t)=x(t)+y(t)-2t y''(t)-ty'(t)+y(t)=1y(0)=1,y'(0)=2我想破头没想出来 y=[abs(t) 用plot函数画图 y(t)=100(1.06)^t y纵坐标t横坐标 y=-(t+1/t)-2 t<0 求y的取值范围 matlab微分方程画图问题已知:x'[t] = 2 (Sin[t] - x[t]) /Sqrt[(Sin[t] - x[t])^2 + (Cos[t] - y[t])^2]y'[t] = 2 (Cos[t] - y[t]) /Sqrt[(Sin[t] - x[t])^2 + (Cos[t] - y[t])^2]初始x[0]=0y[0]=0画出(x,y)的轨迹 关于信号与系统的问题,已知y''(t)+5y'(t)+6y(t)=f(t),y(0-)=1,y'(0-)=1 f(t)=δ(t),求y(0+),y'(0+)! y''(t)+6y'(t)-11y(t)=sin(t) 初始条件 y(0)=1 和 y'(0)=0 t大于0,y=t分之t平方减4t加一的最小值 .已知t大于0则函数y=t平方-4t+1/t的最小值 t小于0,求y=(t^2-4t+1)/t的最大值