how can I give arrow to a particular color in MATLAB?
Show older comments
I have this image
I want to plot the arrow with the color bar, let suppose there is blue colour only so that denote this blue color by an up arrow at a particular direction.

like this, can I do this in matlab?
Answers (1)
figure
plot(1:10)
x = [0.3 0.5];
y = [0.6 0.5];
annotation('textarrow',x,y,'String','y = x ', 'Color', 'b', 'LineWidth', 3)
6 Comments
SAHIL SAHOO
on 21 Jan 2023
Image Analyst
on 21 Jan 2023
Edited: Image Analyst
on 21 Jan 2023
It's the figure that's not clear. Too tiny to resolve. Plus, this is a different picture than the original.
SAHIL SAHOO
on 21 Jan 2023
Edited: SAHIL SAHOO
on 21 Jan 2023
Image Analyst
on 21 Jan 2023
I assume you have the coordinates of the spots on the circle perimeter. That can be where the tails of hte arrow are. Then you need to give coordinates of the arrow head. Then pass in all the coordinates in to quiver. quiver undoubtedly has sample code.
SAHIL SAHOO
on 21 Jan 2023
help quiver
Categories
Find more on Vector Fields 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!
