how to plot a string vector

9 Ansichten (letzte 30 Tage)
Chiara Scarpellini
Chiara Scarpellini am 21 Mai 2021
Kommentiert: Dyuman Joshi am 26 Mai 2021
In plotting a string vector I got as result that matlab make it in alphabetical order, how can I solve this?
I have to plot this:
x=januar
februar
marts
april
maj
juni
juli
august
september
oktober
november
december
Y=0.363112625
0.401244846
0.557567924
0.3938561
0.237848854
0.21611666
0.225111254
0.245804562
0.481396094
0.611200928
0.911855992
1.197021623

Akzeptierte Antwort

Dyuman Joshi
Dyuman Joshi am 21 Mai 2021
plot(Y);
xticks(1:12);
xticklabels({'januar','februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'})
  7 Kommentare
Chiara Scarpellini
Chiara Scarpellini am 24 Mai 2021
I got this
Dyuman Joshi
Dyuman Joshi am 26 Mai 2021
I ran the code on my pc an I got this

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Conway's Game of Life finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by