how to solve Error: Unexpected MATLAB expression

1 Ansicht (letzte 30 Tage)
vaya putra
vaya putra am 17 Jul. 2018
Beantwortet: Ankita Bansal am 17 Jul. 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 Kommentare
Dennis
Dennis am 17 Jul. 2018
You get the same error?
vaya putra
vaya putra am 17 Jul. 2018
yes, what is your suggest? i did not fine any different?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Ankita Bansal
Ankita Bansal am 17 Jul. 2018
Hi vaya, are you missing a * ?
p_conn(bhp,bhT) * p_init(wc(1))

Weitere Antworten (0)

Kategorien

Mehr zu Complex Logic finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by