how can I plot numbers and string in x axis
显示 更早的评论
the reason I want to plot this is I want it to show me the numbers that are the furtherst from zero and closer to -1 or 1 and I want to plot the string in x axis
X= 0.3421
-0.3579
-0.0095
0.3425
0.3246
-0.0042
0.3427
-0.0354
-0.3672
-0.3734
-0.2771
0.2493
0.0129
S= {'A…'} {'B…'} {'C…'} {'D…'} {'E…'} {'F…'}....
5 个评论
Walter Roberson
2019-4-14
Perhaps use those values as xticks, and use S as the xticklabels ?
will99
2019-4-14
will99
2019-4-14
madhan ravi
2019-4-14
编辑:madhan ravi
2019-4-14
Could you show how your final plot should look like?
Walter Roberson
2019-4-14
text(X, zeros(size(X)), S)
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!