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;

 Réponse acceptée

Arif Hoq
Arif Hoq le 2 Mar 2022
Modifié(e) : Arif Hoq le 2 Mar 2022
Use element wise (./) division
A = linspace(10,1000,100);
reciprocalA = 1./A;
check this also for dot expression

2 commentaires

Amy Topaz
Amy Topaz le 2 Mar 2022
Thank you
Arif Hoq
Arif Hoq le 2 Mar 2022
my pleasure

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by