How to merge two cells and extract the superlayed values?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Native
am 4 Dez. 2018
Kommentiert: madhan ravi
am 4 Dez. 2018
I have two cells of dimensions 1X132 each, one cell has the names and the other has numerical values that correspond to each of those names. I want to be able to merge these two cells such that I can later extract the names corresponding to those values, and preferably display it in a plot
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 4 Dez. 2018
Bearbeitet: madhan ravi
am 4 Dez. 2018
a=[[cell1{:}] [cell2{:}]]; % cell1 containng names and the other values
plot([cell2{:}])
xticks(1:numel([cell1{:}]))
xticklabel([cell1{:}]) % requires 2016b and later
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!