2D plot
1 回表示 (過去 30 日間)
古いコメントを表示
I have let 4 entries.
x=[1 2 3 4]
y=[-1 2 -3 -4]
i want to plot x and y. let plot(x,y,' * ');
but i need the index number with each ' * '. If i plot [3; -3], then with ' * ' i must be given index number 3.on the plot window.
index=[1 2 3 4] , for 4 points of x and y.
0 件のコメント
採用された回答
Richard
2012 年 5 月 1 日
Are you thinking of something like this?
clear all
x=[1,2,3,4];
y=[-1,2,-3,-4];
strValues = num2str([x(:) y(:)],'(%d,%d)');
plot(x,y,' * ');
text(x,y,strValues,'VerticalAlignment','bottom');
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!