Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: Help on engineering homework
Posted:
Dec 11, 2010 9:16 PM


"Rick Rosson" <rrosson@mathworks.com> wrote in message <idu3k9$1l4$1@fred.mathworks.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" <imageanalyst@mailinator.com> wrote in message > news:741ed7c97c4a49e4a7e455389898daa1@v12g2000vbx.googlegroups.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



