필터 지우기
필터 지우기

Loop counter help please

조회 수: 2 (최근 30일)
Reynaldo Ponce
Reynaldo Ponce 2019년 2월 26일
답변: KSSV 2019년 2월 26일
Using a FOR loop, perform the following manipulations suppress the output.
  • new_A = A + loop counter
  • new_B= B – loop counter
  • new_C= C * loop counter
  • new_D= D / loop counter
  • new_E= E (Does not need to be done inside the FOR loop)

답변 (1개)

KSSV
KSSV 2019년 2월 26일
Check the below pseudo code.
N = 10 ;
iwant = zeros(N,1) ;
for i = 1:N
iwant(i) = i ;
end

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by