フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to do subtraction operation with columns that are not the same size?

1 回表示 (過去 30 日間)
Matheus Brito
Matheus Brito 2019 年 7 月 9 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I need to know how to perform logical operations such as subtraction and addition between columns that do not have the same size.
For example, I have a column that will always have 60 rows.
However, the second column will change every time I try (49, 54 or 58).
How to perform this operation between these columns in matlab?
  1 件のコメント
Steven Lord
Steven Lord 2019 年 7 月 9 日
By the standard definition of addition and subtraction, you cannot.
What would you expect, for example, the result of subtracting [1; 2; 3] from the vector [4; 5; 6; 7; 8] to be and why? To put it another way, what should x be in the code below?
x = yourSubtraction([4; 5; 6; 7; 8], [1; 2; 3])

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by