Error in implementation matrix dimension

9 visualizzazioni (ultimi 30 giorni)
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)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by