Error in implementation matrix dimension

9 Ansichten (letzte 30 Tage)
Amy Topaz
Amy Topaz am 2 Mär. 2022
Kommentiert: Arif Hoq am 2 Mär. 2022
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;

Akzeptierte Antwort

Arif Hoq
Arif Hoq am 2 Mär. 2022
Bearbeitet: Arif Hoq am 2 Mär. 2022
Use element wise (./) division
A = linspace(10,1000,100);
reciprocalA = 1./A;
check this also for dot expression

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by