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;

 Akzeptierte Antwort

Arif Hoq
Arif Hoq am 2 Mär. 2022
Bearbeitet: Arif Hoq am 2 Mär. 2022

0 Stimmen

Use element wise (./) division
A = linspace(10,1000,100);
reciprocalA = 1./A;
check this also for dot expression

Weitere Antworten (0)

Kategorien

Gefragt:

am 2 Mär. 2022

Kommentiert:

am 2 Mär. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by