mathematical equation into matlab

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)

Answers (1)

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 Comments

this didnt work it says unreconoized variable L
it worked later all good..thanks

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Release

R2020a

Asked:

on 6 May 2020

Commented:

on 7 May 2020

Community Treasure Hunt

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

Start Hunting!