Error in implementation matrix dimension

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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeMultidimensional Arrays についてさらに検索

質問済み:

2022 年 3 月 2 日

コメント済み:

2022 年 3 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by