Histogram using five different ¨his¨

1 view (last 30 days)
VIOLETA PELLICER MORATA
VIOLETA PELLICER MORATA on 4 Dec 2015
Answered: Image Analyst on 5 Jan 2016
Hi everyone,
I am glad that I can ask questions in here. I am a Matlab beginner and I want to analyze five different traces )that i have been converted into MSF file)I know that I need his file to do that, but I do not know how to build an histogram with five different tables (doing an average in one table and represent that in one histogram I imagine..)
Thanks a lot for all your help, that website is always helpful!

Answers (2)

Tushar Athawale
Tushar Athawale on 5 Jan 2016
Initially, you will need to read data from a table into MATLAB variable. You can then build a histogram for data using "histogram" command:

Image Analyst
Image Analyst on 5 Jan 2016
Somehow you have to get the data into MATLAB. Were the 5 traces originally in MATLAB before you did this conversion into MSF files? Why did you do that anyway? What form do these "traces" take on in your program? Are they arrays of doubles? How many dimensions and what length is each dimension?
Or do you not have the original source data (the 5 traces) and have only the MSF files? In that case, you'll have to find an MSF file reader to import them into MATLAB.
Why would a histogram need a table? What columns would you have? Usually the histogram is composed of two arrays: one for the bin centers or edges, and one for the counts. Have you looked at histogram()? It returns an object with lots of properties and methods and two of the properties are the two arrays I mentioned.

Community Treasure Hunt

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

Start Hunting!