Error using + Matrix dimensions must agree
1 回表示 (過去 30 日間)
古いコメントを表示
RGB=real(DFT)+WMI;
6 件のコメント
Steven Lord
2021 年 11 月 8 日
Yes, I agree that likely the dimensions don't agree. Seeing the size of each array may give us some insight into what the cause of that discrepancy may be and suggest a solution. For instance, if both are vectors but one is one element shorter I'd ask if they called diff to create the shorter vector. If one is a vector and the other has the same number of elements but is a different shape, calling reshape may be what the poster wants.
回答 (1 件)
yanqi liu
2021 年 11 月 9 日
RGB=real(DFT)+imresize(WMI,[size(DFT,1) size(DFT,2)], 'bilinear');
4 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!