Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Subscript Indices must be either real positive or logicals

조회 수: 4 (최근 30일)
Asghar Ali
Asghar Ali 2017년 3월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
I am getting above error in following code:
sets =ones(numel(fonts), numel(chars));
sets(end-349:end,:) = 2 ;
  댓글 수: 1
Jeff
Jeff 2017년 3월 13일
I think you need to attach or include your indices files in a .mat file to facilitate diagnosis. My guess if you look at either end, fonts, or chars one of them are not either + integers or logicals.
Only a guess without all of the info

답변 (1개)

Star Strider
Star Strider 2017년 3월 13일
What is the output when you run:
sets_size = size(sets)
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 3월 13일
numel(fonts) is probably less than 349

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by