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;

 채택된 답변

Arif Hoq
Arif Hoq 2022년 3월 2일
편집: Arif Hoq 2022년 3월 2일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

질문:

2022년 3월 2일

댓글:

2022년 3월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by