Loop counter help please

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)

Respuestas (1)

KSSV
KSSV el 26 de Feb. de 2019

0 votos

Check the below pseudo code.
N = 10 ;
iwant = zeros(N,1) ;
for i = 1:N
iwant(i) = i ;
end

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 26 de Feb. de 2019

Respondida:

el 26 de Feb. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by