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

5 visualizaciones (últimos 30 días)
Adnan Shafi
Adnan Shafi el 1 de Dic. de 2015
Respondida: PChoppala el 2 de Dic. de 2015
matrix creating problem how to use loops n matlab

Respuestas (1)

PChoppala
PChoppala el 2 de Dic. de 2015
[P1,P2]=meshgrid(1:4,1:2)
result=P1+P2

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by