MATLAB: Error ‘Undefined variable “hisFtrs” or class “hisFtrs”.’

histogramMATLAB

histFtrs = cell(6,1);
start = 1;
for i = 1 : 6
histFtrs{i} = hist(idx(start:start+size(features{i},2)),nWords)';
%normalize
histFtrs{i} = histFtrs{i}./sum(hisFtrs{i});
end
I am getting error as
Undefined variable "hisFtrs" or class "hisFtrs".
Error in checker (line 30)
histFtrs{i} = histFtrs{i}./sum(hisFtrs{i});
If anyone can help

Best Answer

At least in those lines of code you haven't defined hisFtrs variable. Can it be histFtrs?? If this is not the answer please provide the full code