How to write this matlab code:

1 view (last 30 days)
Quraisyia Aqilah
Quraisyia Aqilah on 21 Oct 2015
Answered: TastyPastry on 21 Oct 2015
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 Comment
Walter Roberson
Walter Roberson on 21 Oct 2015
What if none of the three conditions is true?

Sign in to comment.

Answers (1)

TastyPastry
TastyPastry on 21 Oct 2015
if Ycount < Yget && Yget > 0
%Q1
elseif Ycount > Yget && Yget > 0
%Q2
elseif Ycount > Yget
%Q3
end

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!