MATLAB Answers

will99
0

how can I plot numbers and string in x axis

Asked by will99
on 14 Apr 2019
Latest activity Commented on by Walter Roberson
on 14 Apr 2019
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 Comments

it just my graph doesn't show which variable is assosicate to which data point ?
Could you show how your final plot should look like?
text(X, zeros(size(X)), S)

Sign in to comment.

Tags

Products


Release

R2019a

0 Answers