can i make a matrix like this?

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Oct. de 2013

0 votos

n=4;
m=4;
a=zeros(m,n)
a(1:m,1)=1:m
a(1,1:n)=1:n
for ii=2:m
for jj=2:n
a(ii,jj)=a(ii,jj-1)*a(ii-1,jj)
end
end

Más respuestas (1)

Austin
Austin el 1 de Oct. de 2013

0 votos

Your script works perfectly! Thanks a lot Azzi Abdelmalek.!

Categorías

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

Preguntada:

el 1 de Oct. de 2013

Editada:

el 2 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by