Undefined function or variable t1

1 Ansicht (letzte 30 Tage)
vetri veeran
vetri veeran am 15 Jun. 2015
Beantwortet: Walter Roberson am 15 Jun. 2015
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 Kommentar
Torsten
Torsten am 15 Jun. 2015
I doubt that the error message stems from the part of code you posted.
Best wishes
Torsten..

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Jun. 2015

Weitere Antworten (0)

Kategorien

Mehr zu Solar Power finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by