フィルターのクリア

Undefined function or variable t1

2 ビュー (過去 30 日間)
vetri veeran
vetri veeran 2015 年 6 月 15 日
回答済み: Walter Roberson 2015 年 6 月 15 日
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 Center および File ExchangeSolar Power についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by