Error 'Undefined variable "hisFtrs" or class "hisFtrs".'

1 visualización (últimos 30 días)
Prayag Bhatia
Prayag Bhatia el 27 de Feb. de 2019
Comentada: Prayag Bhatia el 28 de Feb. de 2019
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

Respuesta aceptada

Alex Mcaulley
Alex Mcaulley el 27 de Feb. de 2019
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
  3 comentarios
Alex Mcaulley
Alex Mcaulley el 28 de Feb. de 2019
As I said before, your error is a typo in the line
histFtrs{i} = histFtrs{i}./sum(hisFtrs{i});
It should be:
histFtrs{i} = histFtrs{i}./sum(histFtrs{i});
Are you having more errors after changing this line?
Prayag Bhatia
Prayag Bhatia el 28 de Feb. de 2019
Thanks Buddy , was a very silly mistake on my part.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by