The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Vector definition using variables
Replies: 4   Last Post: Dec 7, 2012 6:55 AM

Advanced Search

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

Posts: 75
Registered: 4/23/12
Re: Vector definition using variables
Posted: Dec 5, 2012 1:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thank you for your answer Steven.

I would expect the value of vect1 to be 1x330.

What I don't understand is that using the tstep formula, it gives me something like 0.9 (300/330).

My problem is that I have defined a final_time value to top the simulation. But it happens that the value of d for example has more columns than the vector time. For example d can be 1x400 and time still stays 1x301.

So I need to "rescale" the vector time, and that's why I want to use a different time step, so both vectors can have the same length and can be plotted together.

I hope it helps !

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.