how to solve Error: Unexpected MATLAB expression

조회 수: 1 (최근 30일)
vaya putra
vaya putra 2018년 7월 17일
답변: Ankita Bansal 2018년 7월 17일
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
Dennis
Dennis 2018년 7월 17일
You get the same error?
vaya putra
vaya putra 2018년 7월 17일
yes, what is your suggest? i did not fine any different?

댓글을 달려면 로그인하십시오.

채택된 답변

Ankita Bansal
Ankita Bansal 2018년 7월 17일
Hi vaya, are you missing a * ?
p_conn(bhp,bhT) * p_init(wc(1))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by