Index exceeds matrix dimensions.
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
if(X(n,5)==X(i(c),5));
12 Commenti
div
il 20 Giu 2018
KSSV
il 20 Giu 2018
We cannot help unless the purpose and dimensions of the variables needed. Copy the complete code here.
Torsten
il 20 Giu 2018
Variable "n" is undefined.
div
il 20 Giu 2018
div
il 20 Giu 2018
div
il 20 Giu 2018
Jan
il 20 Giu 2018
What does "X is a file" mean? The name of the file?
In the body of the question, there is a lower-case "i", but in the code in the comment an upper-case "I".
Does the code in the comment solve your question?
In
for j=1:4
di=abs(X(f,j)-X(i,j));
Z(i)=di;
end
You overwrite the value of Z(i) 3 times. Afterwards Z(i) contains only the value for j=4.
Risposte (0)
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!