Split the data into group then graph them
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yaser Khojah
el 10 de Feb. de 2020
Comentada: Star Strider
el 10 de Feb. de 2020
I have a big matrix as
[ENPV, SD, R];
I would like to split R into 3 groups based on criteria as
Group 1 when R is between [0 10]
Group 2 when R is between [11 20]
Group 3 when R is between [21 30]
Then, I want to draw them.
I tried something as below but did not work
[counting,group] = hist(R,3);
G = findgroups(R,group)
figure
gscatter(SD, ENPV, G)
Anyway to help wtih this please.
0 comentarios
Respuesta aceptada
Star Strider
el 10 de Feb. de 2020
group = discretize(R, [0 10 20 30]);
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!