필터 지우기
필터 지우기

Running two loops at once

조회 수: 2 (최근 30일)
matlabkid602
matlabkid602 2017년 11월 17일
댓글: KSSV 2017년 11월 17일
Hi.
I have a problem where I need to run two index parameters at one time.
For example, I need p to go from 1:21, but I also need an index n to run from -10:10 for each value of p. So when p=1, n =-10 etc
How do I do this?
  댓글 수: 1
KSSV
KSSV 2017년 11월 17일
What's the necessity to make a loop index negative?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by