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

5 vues (au cours des 30 derniers jours)
Adnan Shafi
Adnan Shafi le 1 Déc 2015
matrix creating problem how to use loops n matlab
  2 commentaires
Thorsten
Thorsten le 1 Déc 2015
Is this homework? What have you tried so far?

Connectez-vous pour commenter.

Réponses (1)

PChoppala
PChoppala le 2 Déc 2015
[P1,P2]=meshgrid(1:4,1:2)
result=P1+P2

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by