필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Prayag Bhatia
Prayag Bhatia 2019년 2월 27일
댓글: Prayag Bhatia 2019년 2월 28일
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

채택된 답변

Alex Mcaulley
Alex Mcaulley 2019년 2월 27일
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
Alex Mcaulley
Alex Mcaulley 2019년 2월 28일
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 2019년 2월 28일
Thanks Buddy , was a very silly mistake on my part.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by