Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

could anyone help me to fix the issue

1 visualización (últimos 30 días)
Prabha Kumaresan
Prabha Kumaresan el 5 de Abr. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
N_rng=[ 1 2 3 4 5 23]
N_rng=[6 7 8 9 10 25 26]
N_rng=[11 12 13 14 15 16 17]
for s=1:length(N_rng)
..
..
..
end
for the above code how to use N_rng with respect to three different scenarios in the for loop.

Respuestas (1)

Birdman
Birdman el 5 de Abr. de 2018
Editada: Birdman el 5 de Abr. de 2018
N_rng={[ 1 2 3 4 5 23];[6 7 8 9 10 25 26];[11 12 13 14 15 16 17]}
for i=1:size(N_rng,1)
N_rng{i,:}
..
end
  2 comentarios
Prabha Kumaresan
Prabha Kumaresan el 5 de Abr. de 2018
i am getting error Unbalanced or unexpected parenthesis or bracket in N_rng{i,:}
Birdman
Birdman el 5 de Abr. de 2018
It works well for me. Make sure you copied the code correctly or clear the workspace before you run this code.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by