필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

could anyone help me to fix the issue

조회 수: 1 (최근 30일)
Prabha Kumaresan
Prabha Kumaresan 2018년 4월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
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.

답변 (1개)

Birdman
Birdman 2018년 4월 5일
편집: Birdman 2018년 4월 5일
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
Prabha Kumaresan
Prabha Kumaresan 2018년 4월 5일
i am getting error Unbalanced or unexpected parenthesis or bracket in N_rng{i,:}
Birdman
Birdman 2018년 4월 5일
It works well for me. Make sure you copied the code correctly or clear the workspace before you run this code.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by