How do I get a histogram of values from within a table?

7 visualizaciones (últimos 30 días)
Ashrit Tayade
Ashrit Tayade el 15 de Sept. de 2020
Editada: Ashrit Tayade el 15 de Sept. de 2020
When I create an array from a select few values from a categorical variable in a table, the histogram shows every variable from the table instead of just the ones in the array.
table1 = table(table.column1 == "CAT", :);
array = table1.column1;
histogram(array)
The code above shows a histogram of the entire column table.column1 instead of a histogram of the array created by using table1.

Respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by