Receiving a "Array indices must be positive integers or logical values." message

조회 수: 1 (최근 30일)
Qoran
Qoran 2022년 11월 29일
편집: Chunru 2022년 11월 29일
How can I resolve this issue and proceed to plot it

답변 (1개)

Chunru
Chunru 2022년 11월 29일
편집: Chunru 2022년 11월 29일
change the for loops into:
x = 1:.1:10;
results = abs(q) ./ (4*pi*e0*x.^2);
The original program has result(x) where x is not positive integer for arrray index

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by