Undefined function or variable t1

1 次查看(过去 30 天)
clc;
clear all;
close all;
w=1;
t=0:0.001:2*pi;
M1=2e6;
M2=2e9;
M=M2;
for i=1:length(t)
v(i)=2*sin(w*t(i));
if v(i)==1.5
t1=t(i);
end
if v(i)==-1.5
t3=t(i);
end
end
t=0:0.001:2*pi;
  1 个评论
Torsten
Torsten 2015-6-15
I doubt that the error message stems from the part of code you posted.
Best wishes
Torsten..

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2015-6-15

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by