フィルターのクリア

How to solve this code error in

1 回表示 (過去 30 日間)
gfgf99
gfgf99 2015 年 5 月 31 日
コメント済み: Manish Joshi 2015 年 5 月 31 日
k = [1];
l = [5];
n = [6];
m = [8];
re = [k l];
ne = [m re];
cv = re.*ne ;
  1 件のコメント
Manish Joshi
Manish Joshi 2015 年 5 月 31 日
re = [1 5] and ne = [8 1 5] both of these contain 2 and three elements respectively whereas in order to use .* both matrices/vectors should have same dimensions.

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

採用された回答

Roger Stafford
Roger Stafford 2015 年 5 月 31 日
編集済み: Roger Stafford 2015 年 5 月 31 日
The vector 're' has 2 elements and 'ne' has 3 elements, so the element-by-element multiplication re.*ne becomes meaningless. How can you pair two elements with three elements?
  1 件のコメント
gfgf99
gfgf99 2015 年 5 月 31 日
編集済み: gfgf99 2015 年 5 月 31 日
Thanks for your guidance :)

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

その他の回答 (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