Turning a matrix in to a multi color graph
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am tring to turn this matrix into a plot that has multiple colors. The color code is this
%whtie = 1;
%orange = 2;
%yellow = 3;
%red = 4;
%blue = 5;
%green = 6;
%error (black) = 9999;
%nothing (no color) = 0
This is the matrix I have, it is a 9x12
UnsolvedLayout =
Columns 1 through 32
0 0 0 1 3 4 0 0 0 0 0 0 6 4 6 5 1 5 2 1 3 1 2 3 0 0 0 3 4 5 0 0
0 0 0 6 2 5 0 0 0 0 0 0 4 1 3 5 1 6 2 5 5 4 2 4 0 0 0 2 6 6 0 0
0 0 0 5 1 4 0 0 0 0 0 0 6 6 2 4 4 3 3 2 2 1 3 5 0 0 0 1 3 6 0 0
Columns 33 through 36
0 0 0 0
0 0 0 0
0 0 0 0
Please help me figure out how to do this, my initial thought was using meshgrid
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D 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!