How can I add quiver in this according to their color?

2 views (last 30 days)
%I want to add the quiver in the circular array, means that a color show a
%particluar direction.

Answers (1)

Image Analyst
Image Analyst on 26 Jan 2023
Edited: Image Analyst on 26 Jan 2023
Use annotation. Set the color according to the angle. Should be easy, right?
You should not have removed all the comments when you posted your code. I'm sure you had them in there, like all good programmers do, but when you removed them it made it difficult for us to follow your code. Please put the comments back in and specifically call out what variables are the (x,y) centers of the small spots, and what variable contains the angles that you'd like the arrows pointing along.

Categories

Find more on Vector Fields in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!