I'd like to know how to make histogram with matlab raw data file.
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
William Rose
2022-11-21
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!