ineq =
syms Y
y_caseA = 5;
y_caseB = 10;
y_caseC = 7;
y_caseD = 3;
ineq = piecewise((Y > y_caseA) & (Y < y_caseB) & (Y<y_caseC) & (Y>y_caseD),1,0)
fplot(ineq, [0 15])
ylim([-.1 1.1])
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!