can i make a matrix like this?

1 vue (au cours des 30 derniers jours)
Austin
Austin le 1 Oct 2013
Modifié(e) : Austin le 2 Oct 2013

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 1 Oct 2013
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

Plus de réponses (1)

Austin
Austin le 1 Oct 2013
Your script works perfectly! Thanks a lot Azzi Abdelmalek.!

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by