Hello!
I have a task to create a 2-D plot with (x,y). On this plot I have to show
if x < y ,then all these points should be coloured red .
if x > 11,then the points should be coloured green .
Could you please help me on how to plot this (xy) graph ?
Thank you !

 채택된 답변

Cris LaPierre
Cris LaPierre 2020년 11월 18일

1 개 추천

I suggest MATLAB Onramp. Ch 9 covers the basics of plotting. You'll also need Ch 12 (logical arrays).

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by