MATLAB Answers

0

Coloring the desired specific region bounded by curves drawn using insert button and text using 'gtext'?

Asked by Phenomenal One on 13 Jul 2019
Latest activity Commented on by Image Analyst
on 15 Jul 2019
I am trying to color the region 'A' in the figure using MATLAB. I have drawn the fours straightlines using the insert command button in the figure window of MATLAB.
I have seen fill , shade command but seems like they work when I give the explicit equations to the straightlines/ curves.
Any way to color the region A in the figure which is bounded by the four straightliunes.parallelogram.jpg

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Image Analyst
on 13 Jul 2019
 Accepted Answer

Try fill() or patch().

  2 Comments

Still they need the equations of the lines, but yes it would be difficult to shade a region bounded by the curves whose equations are unknown, like just in case you want to do a free hand sketch / for example purposes. So how to proceed to color a region bounded by curves whose equations we donot know?
If you have vectors giving the x and y locations, then that's all you need.

Sign in to comment.