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

1 visualización (últimos 30 días)
How can I resolve this issue and proceed to plot it

Respuestas (1)

Chunru
Chunru el 29 de Nov. de 2022
Editada: Chunru el 29 de Nov. de 2022
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

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by