Plotting histogram in Matlab Gui

26 views (last 30 days)
Jonasz on 19 Aug 2013
I try to plot a histogram in Matlab Gui using axis control. But nothing change after running code below:
guidata(hObject, handles);
What is wrong I have tried almost every combination.

Accepted Answer

Image Analyst
Image Analyst on 19 Aug 2013
[counts, binCenters] = hist(sort(averSpectrum),500);
bar(binCenters, counts, 'BarWidth', 1);
grid on;
Jonasz on 19 Aug 2013
I find what happen. It's the same name of variable and tag. Sorry for bothering you but it wasn't so obvious for me

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!