帮我看看这段matlab周期函数哪里有问题是我这个是分段周期函数,显示的错误为:Error using ==> plotVectors must be the same lengths.我没找出来错误,麻烦帮我看看,clc;clear;t1 = [0:0.0001:0.005];y1 = 1./(1-0.5.*t1
来源:学生学帮网 编辑:学帮网 时间:2024/07/06 23:04:30
帮我看看这段matlab周期函数哪里有问题是
我这个是分段周期函数,显示的错误为:
Error using ==> plot
Vectors must be the same lengths.
我没找出来错误,麻烦帮我看看,
clc;clear;
t1 = [0:0.0001:0.005];
y1 = 1./(1-0.5.*t1.^2).^2;
t2 = [0.005:0.0001:0.015];
y2 = 1./(1+0.5.*t2.^2-0.01.*t2+0.000025).^2;
t3 = [0.015:0.0001:0.02];
y3 = 1./(1-0.5.*t3.^2+0.02.*t3-0.0002).^2;
t = [t1,t2,t3];
y = [y1,y2,y3];
t=[0:0.0001:0.1];
y = repmat(y,1,5); %错误就在上面这两句里!
plot(t,y)
你t1,t2,t3中间有重复的点,改成
clc;clear;
t1 = [0:0.0001:0.005];
y1 = 1./(1-0.5.*t1.^2).^2;
t2 = [0.0051:0.0001:0.015];
y2 = 1./(1+0.5.*t2.^2-0.01.*t2+0.000025).^2;
t3 = [0.0151:0.0001:0.02];
y3 = 1./(1-0.5.*t3.^2+0.02.*t3-0.0002).^2;
t = [t1,t2,t3];
y = [y1,y2,y3];
t=[0:0.0001:0.1004];
y = repmat(y,1,5);
plot(t,y)
帮我看看这段matlab周期函数哪里有问题是我这个是分段周期函数,显示的错误为:Error using ==> plotVectors must be the same lengths.我没找出来错误,麻烦帮我看看,clc;clear;t1 = [0:0.0001:0.005];y1 = 1./(1-0.5.*t1
matlab,帮我看看这道题~
帮我看看哪里有错
求英语老师帮我看看作文哪里有错误❓
帮我看看这段对话中有几处错误,
求数学高手帮我看看我第二问哪里算错了
帮我看看这句话出自哪里的
帮我看看哪里错了,
帮我看看哪里错了?
大家帮我看看哪里错了?
帮我看看哪里错了
帮我看看哪里错了
帮我看看哪里错了?
matlab大神有空的话帮我看看这个问题,呵呵
(帮我看看第二小问)
大家帮我看看第三小问
帮我看看 有磁性
麻烦大家帮我修改一下这篇英语作文(初三水平),看看哪里有错误,可以怎样提高