Effacer les filtres
Effacer les filtres

How to evaluate an equation with multiple points for a variable.

4 vues (au cours des 30 derniers jours)
aquiano
aquiano le 5 Sep 2016
Commenté : Thorsten le 8 Sep 2016
I have RE = V*D/NU and another equation C = 3.*RHOBAR/(4.*D) both variables RE and C appear in other equations, which will eventually end up in a plot. I want set multiple values for D. How do I solve this?
If I use D=[.1 .05 .001] I get an error stating Matrix Dimensions must agree
  2 commentaires
KSSV
KSSV le 7 Sep 2016
What are V, D, RHOBAR? constants? I think NU is poisons ratio and RHOBAR is density. What is V?
Thorsten
Thorsten le 8 Sep 2016
Please post your code in text form, not as an image, such that we can run it.

Connectez-vous pour commenter.

Réponses (1)

Thanigaivel Raja T
Thanigaivel Raja T le 8 Sep 2016
Modifié(e) : Thanigaivel Raja T le 8 Sep 2016
Make sure you have placed dot before operators for vector variables in your reynolds number RE, C and in equation containing RE and C.
In general,
* % matrix multiply
.* %scalar multiply
/ % matrix divide
./ % scalar divide
^ % exponentiation
.^ % element-by-element exponentiation

Catégories

En savoir plus sur Get Started with MATLAB 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