Info

此问题已关闭。 请重新打开它进行编辑或回答。

Subscript Indices must be either real positive or logicals

1 次查看(过去 30 天)
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)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by