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
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 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!