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;

 Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by