Assignment has more non-singleton rhs dimensions than non-singleton subscripts

1 回表示 (過去 30 日間)
MSP
MSP 2017 年 11 月 23 日
回答済み: the cyclist 2017 年 11 月 23 日
I am getting this error while I am running a function, I am aware that a few instances like this might happen in the function. Is there a way that if this error occurs,then the function will move to the next iteration and have a Nan at the corresponding index where the error occurs.
Context: Basically In the function instead of returning one value the function at certain indexes return three values.So if this case occurs then I want the index to be replaced by a Nan, and later interpolate with the existing values

採用された回答

the cyclist
the cyclist 2017 年 11 月 23 日
One possibility is to use a try-catch code structure.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by