Divide elements of one vector by another

328 ビュー (過去 30 日間)
Eoghan Daly
Eoghan Daly 2015 年 11 月 30 日
コメント済み: Daniel 2024 年 3 月 21 日
Hi MATLAB People,
I have two 35x1 vectors A & B. how do I divide each individual element of A by its corresponding element in B into a new 35x1 vector C?

採用された回答

Star Strider
Star Strider 2015 年 11 月 30 日
Use the element-wise dot operator (./) division:
C = A./B
See Array v Matrix Operations for all the other wonderful things the dot operator can do.
  6 件のコメント
Dushyant Kumar
Dushyant Kumar 2019 年 7 月 13 日
He means thankx in Hindi language :-)
Daniel
Daniel 2024 年 3 月 21 日
simple but effective lol

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by