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

1 vue (au cours des 30 derniers jours)
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 commentaires
Danishtah Quamar
Danishtah Quamar le 28 Jan 2022
Yes that was only problem in coding.

Connectez-vous pour commenter.

Réponse acceptée

Star Strider
Star Strider le 28 Jan 2022
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.)
.

Plus de réponses (0)

Catégories

En savoir plus sur Just for fun dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by