how can I give arrow to a particular color in MATLAB?
6 次查看(过去 30 天)
显示 更早的评论
I have this image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1270505/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1270510/image.png)
like this, can I do this in matlab?
0 个评论
回答(1 个)
Image Analyst
2023-1-21
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!