Define a matrix A of dimension 2*4 whose (i , j) entry is A(i , j)=i+j
显示 更早的评论
matrix creating problem how to use loops n matlab
回答(1 个)
PChoppala
2015-12-2
[P1,P2]=meshgrid(1:4,1:2)
result=P1+P2
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!