Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Help on engineering homework
Replies: 9   Last Post: Dec 11, 2010 9:34 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ethan Robinson

Posts: 5
Registered: 12/10/10
Re: Help on engineering homework
Posted: Dec 11, 2010 9:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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:741ed7c9-7c4a-49e4-a7e4-55389898daa1@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!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.