Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 1 Okt. 2013

0 Stimmen

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

Weitere Antworten (1)

Austin
Austin am 1 Okt. 2013

0 Stimmen

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

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by