Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

12 different coordinates for 12 equations, how to do it quickly?

1 vue (au cours des 30 derniers jours)
Ruslan Khoguev
Ruslan Khoguev le 4 Déc 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have 12 different coordinates: (x,y)= (1,1) , (-1,1) , (-1,-1) etc
I need to plug one coordinate into 12 different equations, for example:
x+y=w
2x+2y=w+m
3x+3y=v+m
and so on. I need to do this for all 12 different coordinates. How can I do this quickly without having to set up 12*12 = 144 equations?
...
  7 commentaires
Ruslan Khoguev
Ruslan Khoguev le 14 Déc 2018
Could you show an example of this? I am new to MATLAB
Walter Roberson
Walter Roberson le 14 Déc 2018
[eta, xi] = ndgrid(-1:1, -1:2);
N3=a*(xi-1).^2.*(eta-1).*(xi+1)/8;

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by