채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 1일

0 개 추천

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

추가 답변 (1개)

Austin
Austin 2013년 10월 1일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2013년 10월 1일

편집:

2013년 10월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by