how to connection 2 grid
Afficher commentaires plus anciens
hi i have 2 grid wc1 = W(1).cells; wc2 = W(2).cells; i want to write wc consift of w(1) and w(2) Temp = ones(size(wc))*200; vis = @(p,T, bhp) ... WI .* (rho(p(wc),T(wc))./mu(p(wc),T(wc)))
i have to calculate one by one or direct with some command?
3 commentaires
Adam Danz
le 11 Juil 2018
What is consift? What are wc1 and wc2 and what do you want to do with them? I can't understand your question. Also, format your code using the {} button to it's readable.
vaya putra
le 11 Juil 2018
Adam Danz
le 11 Juil 2018
What are wc1 and wc2?
Vectors?
wc1 = [ 1 2 3 4 5];
Matrices?
wc1 = [1 2 3; 4 5 6];
And what would you like 'Temp' to be?
Réponses (3)
vaya putra
le 11 Juil 2018
0 votes
If I understand you correctly, you want to combine wc1 and wc2 which are both column vectors.
Option 1:
wc1 = [412;422;432;442];
wc2 = [512;522;532;542];
wc = [wc1, wc2]
wc =
412 512
422 522
432 532
442 542
Option 2:
wc = [wc1; wc2]
wc =
412
422
432
442
512
522
532
542
2 commentaires
Adam Danz
le 17 Juil 2018
Did this solution work for you Vaya?
vaya putra
le 17 Juil 2018
vaya putra
le 11 Juil 2018
0 votes
Catégories
En savoir plus sur Decision Logic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!