how to find two values with a single function
Mostrar comentarios más antiguos
Hey Guys,
I am very new to Matlab and with the help of some tutorials I came to know that Matlab can solve functions . With the help of that I was creating a function to solve Newton's laws of motion
I wanted to find the velocity and time at impact of a falling object using the below function
function [v , t] = my_sin (u ,h)
v = sqrt((u^2)+ (2*9.81*h));
t = (v-u)/9.81;
end
In the command box when I type
my_sin(0 , 10)
I just get the velocity v value , but not the time t .. Can anyone help me to solve this
Kindly looking forward for a solution
Regards
Aadithya
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!