how to solve Error: Unexpected MATLAB expression
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
vaya putra
le 17 Juil 2018
Réponse apportée : Ankita Bansal
le 17 Juil 2018
i write command for initial pressure in grid cell (FVM = finite volume methods) i have done define p_init(below)
p_init = reshape(deval(equil, G.cells.centroids(:,3)), [], 1);
when i run, MATLAB did not recognize
p_conn(bhp,bhT) p_init(wc(1)) + g*dz.*rho(bhp,bhT) ↑ Error: Unexpected MATLAB expression.
i try execution, MATLAB can define anyone can help me, what wrong with my commands?? aa= p_init(wc(1))
aa =
2.0397e+07
4 commentaires
Réponse acceptée
Ankita Bansal
le 17 Juil 2018
Hi vaya, are you missing a * ?
p_conn(bhp,bhT) * p_init(wc(1))
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Complex Logic dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!