Error in implementation matrix dimension

3 ビュー (過去 30 日間)
Amy Topaz
Amy Topaz 2022 年 3 月 2 日
コメント済み: Arif Hoq 2022 年 3 月 2 日
I am trying to implement the below code but it shows matrix dimension error. Why is that?
A = linspace(10,1000,100);
reciprocalA = 1/A;

採用された回答

Arif Hoq
Arif Hoq 2022 年 3 月 2 日
編集済み: Arif Hoq 2022 年 3 月 2 日
Use element wise (./) division
A = linspace(10,1000,100);
reciprocalA = 1./A;
check this also for dot expression
  2 件のコメント
Amy Topaz
Amy Topaz 2022 年 3 月 2 日
Thank you
Arif Hoq
Arif Hoq 2022 年 3 月 2 日
my pleasure

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by