mathematical equation into matlab

7 vues (au cours des 30 derniers jours)
prinesh patel
prinesh patel le 6 Mai 2020
Commenté : prinesh patel le 7 Mai 2020
how can i get the following equation in matlab with given values of variable.
t = (2L^2)/(5l^2 H^2 √2g){H^(5/2)}
i need to find value of (t)
i have values of (L,l,H)

Réponses (1)

David Hill
David Hill le 6 Mai 2020
t = (2*L.^2)./(5*I.^2.*H.^2*sqrt(2*g)).*H^(5/2);%assuming I, L, H are same size arrays and g is scalar
  2 commentaires
prinesh patel
prinesh patel le 7 Mai 2020
this didnt work it says unreconoized variable L
prinesh patel
prinesh patel le 7 Mai 2020
it worked later all good..thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by