How can I plot selected data from a group?
2 views (last 30 days)
Show older comments
Hi,
I have a (quite large) data set containing a sensor-type, the read sensor value and a mode when the data was recorded. I have grouped the data based on the sensor type and mode. I want to analyze the data by plotting and applying some statistical calculations but I am only interested in looking at a few certain modes. I assume that gscatter or gmatrix could be of help, but with 2 sensortypes and 10 modes I get 20 groups which is too much to keep track of.
I would like to display the data from 4 modes in a histogram, where the sensortypes and modes still are kept separate. I could do 1 diagram for each mode as well for readability but both sensortypes should still be included in every mode. Is there any way to do this without using hold on?
I've tried
histogram(data (G==2));
hold on
histogram(data (G==3));
which works if you are not plotting too many groups. But it feels like there should be a better solution.
Thanks!
0 Comments
Answers (0)
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!