matrix problem Matrix dimensions must agree
古いコメントを表示
hello I have the following problem:
Error using -
Matrix dimensions must agree.
Error in CMF_Cut (line 136)
pts = divp -(ps - pt + u /cc );
I tried to use ./ but the problem remains the same
9 件のコメント
madhan ravi
2019 年 3 月 10 日
size(divp), size(ps), size(pt), size(u) & size(cc) ?
dakhli mohamed
2019 年 3 月 10 日
編集済み: per isakson
2019 年 3 月 10 日
Walter Roberson
2019 年 3 月 10 日
Those arrays that are 652 x 1366 x 3 have the same number of elements as the array that is 652 x 4098, but they have different number of dimensions. How would you like to define the result of subtracting a 652 x 1366 x 3 array from a 652 x 4098 array ?
madhan ravi
2019 年 3 月 10 日
Perhaps?
pts = divp(:)-reshape(ps - pt + u /cc,[],1);
dakhli mohamed
2019 年 3 月 10 日
Walter Roberson
2019 年 3 月 10 日
What is X here? In the case where you had the mix of 652 x 4098, compared to 652 x 1366 x 3, then what output size are you looking for?
dakhli mohamed
2019 年 3 月 10 日
Walter Roberson
2019 年 3 月 10 日
Okay, so how do you want to do that conversion? For example do you want to extract the Saturation value of the HSV equivalent of an RGB image?
dakhli mohamed
2019 年 3 月 10 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!