"Rick Rosson" <firstname.lastname@example.org> wrote in message <email@example.com>... > I agree with the general approach suggested by "ImageAnalyst", but I would > recommend one improvement: you will probably need to use a time increment > that is small than 1 (assuming that the unit of measure for time is > 'seconds'). I would try something like this: > > startTime = 0; % seconds > stopTime = 20; % or whatever makes sense > dt = 0.01; % try different values here, not sure what > makes sense > > t = startTime:dt:StopTime; % seconds > > Then compute h(t) and v(t) using the dot operators as suggested. > > h = ... > v = ... > > Then plot both h and v versus t on two separate axes. > > Then use relational operators to find solutions to the questions asked. > > HTH. > > Rick > > > > "ImageAnalyst" <firstname.lastname@example.org> wrote in message > news:email@example.com... > > Make t a vector, like t = 1:100, then in your formulas use dot slash > > (./), dot star (.*), and dot caret (.^) instead. Get your h and v. > > Then use the plot function to plot them. > > > > Relational and logical operators are described in the help. Look up > > logical indexing also - you'll need that here, and to get anywhere in > > MATLAB in the future.
Ah, that make sense, thank you so much. Thank you everyone for the help, I really appreciate it! -Ethan