필터 지우기
필터 지우기

Argument to dynamic structure reference must evaluate to a valid field name.

조회 수: 5 (최근 30일)
V_c =2.*pi.*x10.((R-x9).^2 - x1.^2) + pi.*L.*(R.^2 - (R-x9).^2) +
pi.*x12.*((Ro+x6).^2 - (x1+x7).^2);
I am getting error in this that argument to dynamic structure reference must evaluate to a valid field name.
  댓글 수: 4

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

채택된 답변

Star Strider
Star Strider 2022년 1월 28일
Typographical error.
The single . is generating the error.
V_c =2.*pi.*x10.((R-x9).^2 - x1.^2) + pi.*L.*(R.^2 - (R-x9).^2) + pi.*x12.*((Ro+x6).^2 - (x1+x7).^2);
↑ ← MISSING OPERATOR
See if:
V_c =2.*pi.*x10.*((R-x9).^2 - x1.^2) + pi.*L.*(R.^2 - (R-x9).^2) + pi.*x12.*((Ro+x6).^2 - (x1+x7).^2);
works. (I do not see any other problems.)
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by