How to write this matlab code:

case 1: Ycount<Yget and Yget>0, consider as Q1
case 2: Ycount>Yget and Yget>0, consider as Q2
case 3: Ycount>Yget, consider as Q3

1 件のコメント

Walter Roberson
Walter Roberson 2015 年 10 月 21 日
What if none of the three conditions is true?

サインインしてコメントする。

回答 (1 件)

TastyPastry
TastyPastry 2015 年 10 月 21 日

0 投票

if Ycount < Yget && Yget > 0
%Q1
elseif Ycount > Yget && Yget > 0
%Q2
elseif Ycount > Yget
%Q3
end

タグ

質問済み:

2015 年 10 月 21 日

回答済み:

2015 年 10 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by