Syntax for Physics Equation

4 views (last 30 days)
Josh Heffron
Josh Heffron on 16 Dec 2020
Edited: Sibi on 16 Dec 2020
What would the correct sytax be for the equation a_x=(T/m)-((D*rho*A)/2m)*vx(i)^2

Answers (1)

Sibi
Sibi on 16 Dec 2020
Edited: Sibi on 16 Dec 2020
x=0:10; %% for x from 0 to 10
T=1;m=1;rho=1;A=1;m=1;v=1;D=1;
a_x=(T/m)-((D*rho*A)/(2*m))*v*(x).^2

Tags

Community Treasure Hunt

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

Start Hunting!