Is it possible to plot a cell array on y axis (imagesc function)
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shannon McNee
am 2 Aug. 2016
Kommentiert: Shannon McNee
am 2 Aug. 2016
Hello,
I am plotting a 2D logical vector using imagesc and am trying to specify my y-axis. The information I want to use as my y-axis (names of Action Units) is stored in a 1x42 cell array. When I try to use this information as my y axis I receive the error: Error using set, Conversion to double from cell is not possible.
Is there anyway I can use this information as my y-axis?
Thanks in advance, Shannon
2 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 2 Aug. 2016
Use Yticklabel instead of ytick
set(gca, 'YTicklabel',{'AU1','AU1-2','aa' })
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Distribution Plots 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!