Define a matrix A of dimension 2*4 whose (i , j) entry is A(i , j)=i+j
Show older comments
matrix creating problem how to use loops n matlab
2 Comments
the cyclist
on 1 Dec 2015
Thorsten
on 1 Dec 2015
Is this homework? What have you tried so far?
Answers (1)
PChoppala
on 2 Dec 2015
[P1,P2]=meshgrid(1:4,1:2)
result=P1+P2
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!