I'd like to know how to make histogram with matlab raw data file.
6 views (last 30 days)
Show older comments
I'd like to know how to make histogram with matlab raw data file.
this is my raw data file.
I have 10,000 raw data file and i'd like to make a histogram with this data.
I tried //histogram(my_file.raw)// but it doesn't work. the error message is my data is complx, instead function need real data.
to sum it up,
I'd like to know how to import my raw data to my matlab variable and how to make a histogram with my complex raw data.
Thank you very much.
0 Comments
Answers (1)
William Rose
on 21 Nov 2022
histogram(x) does not work with complex x. A histogram of complex data would be a 3D plot.
You can do
histogram(real(x))
histogram(imag(x))
histogram(abs(x));
There are functions to make a histogram of complex data, in the Matlab File Exchange, such as this package.
Good luck.
0 Comments
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!