Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

What this indexing error all about in my matlab program. please help.

1 Ansicht (letzte 30 Tage)
Virajan Verma
Virajan Verma am 25 Okt. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
%%Transpose of N_matrix
for i=1:26
for j=1:8
NT_matrix(i,j)=(N_matrix((i-1),j));(ERROR HERE)
end
end
Attempted to access N_matrix(0,1); index must be a positive integer or logical.
Error in practisee2 (line 367) NT_matrix(i,j)=(N_matrix((i-1),j))

Antworten (1)

Kevin Chng
Kevin Chng am 25 Okt. 2018
indexing must be positive integer, don't allow zero or floating.
When i =1, then i-1 =0, then
N_matrix((0),j)
it cause the error.

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by