Define a matrix A of dimension 2*4 whose (i , j) entry is A(i , j)=i+j

5 次查看(过去 30 天)
matrix creating problem how to use loops n matlab

回答(1 个)

PChoppala
PChoppala 2015-12-2
[P1,P2]=meshgrid(1:4,1:2)
result=P1+P2

标签

Community Treasure Hunt

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

Start Hunting!

Translated by