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

tmp=nan(2^(main.subdivide-1)*main.siz);
tmp(1:dimen(1),1:dimen(2))=refim; refim=tmp;
tmp(1:dimen(1),1:dimen(2))=im; im=tmp;
clear tmp;
i have the above erroe in this part of my code

 採用された回答

Walter Roberson
Walter Roberson 2013 年 2 月 12 日

0 投票

What are refim and im ? What is their size() ?
My guess is that your refim is 3 dimensional (RGB), but your tmp array is only 2 dimensional.

1 件のコメント

Madiha Azam
Madiha Azam 2013 年 2 月 13 日
thanks for your help ,yes i found my images were 3D

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by