Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Subscript Indices must be either real positive or logicals

1 回表示 (過去 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