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

1 次查看(过去 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 中查找有关 Just for fun 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by