how to check time in if statement?
4 ビュー (過去 30 日間)
古いコメントを表示
In if statement i want to check the timing of the signal . I mean for zero second output is 5 else 2 . And this repeats for few other conditions of time.
like,
If t=0
res=5;
elseif t=6
res=7;
else
res=0;
(all times in seconds)
3 件のコメント
Adam Danz
2021 年 2 月 1 日
See examples of correct usage of if statements testing for equality
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!