MATLAB Answers

can i make a matrix like this?

1 view (last 30 days)
Austin
Austin on 1 Oct 2013
Edited: Austin on 2 Oct 2013

  0 Comments

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 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

  0 Comments

Sign in to comment.

More Answers (1)

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

  0 Comments

Sign in to comment.

Sign in to answer this question.