use a loop structure .
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
A=zeros(4) % this is the same as zeros (4,4) // returns as a 4x4 matrix of zeros
for m= 1:4
for n=1:4
A(m,n) = m*10+n
end
end
1 个评论
Azzi Abdelmalek
2016-8-29
What is your problem?
回答(1 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!