Having trouble using the histogram function
Ältere Kommentare anzeigen
I have been trying to generate a histogram of gradients for an input image. The image is given to a function, which then finally returns a column vector X. However, when I say histogram(X), I get the following error:
>> histogram(x)
Not enough input arguments.
Error in histogram (line 27)
binSize = pi / numBins;
line 27 is
% Compute the bin size in radians. 180 degress = pi.
binSize = pi / numBins;
I have even tried copying and running the example histogram codes on the documentation page, but all return the exact same error. I'm pretty sure they should work without me having to give any input arguments. Please let me know what I'm missing, I know it must be something pretty silly.
2 Kommentare
1) What version of matlab are you using? (run ver() if you don't know).
2) can you share your column vector (or at least part of it)?
[edit]
Supriya Prasad
am 25 Jul. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Histograms finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!