Re: matlab help



ImageAnalyst wrote:
On May 3, 6:47 pm, "Adnan " <kbmj8...@xxxxxxxxx> wrote:
How can I show an object on a xy coordinate movingfrom one
point to another, during simulation
---------------------------------------------------
Adnan:
Are you asking about how to *animate* a line moving from one point to
another in a plot? You can use polyfit and polyval to get
intermediate points and then put in a loop that goes from one point to
the next, erasing and plotting a line each time, with a slight delay
in between each plot of the line. This would give the appearance of
animating a slow movement of a line from one point to another.

Also, could look at the source for the Lorenz attractor demo for implementation ideas...

--
.



Relevant Pages

  • Re: Problem with using movie function
    ... I wish to use the movie function to animate my ... histogram but I had tried various way and the below code still cannot ... What is 'Y' in the call to PLOT? ...
    (comp.soft-sys.matlab)
  • Help with creating a movie of plot3
    ... I'm trying to animate a plot3 figure. ... That is I plot some data from user input and then I wanted to plot each datapoint again bigger and in different color to show how the user behaved. ...
    (comp.soft-sys.matlab)
  • Re: Problem with using movie function
    ... I wish to use the movie function to animate my histogram but I had tried various way and the below code still cannot perform correctly. ... The PLOT does not appear to change inside the FOR loop, wouldn't you expect Mto be the same for all values of k? ...
    (comp.soft-sys.matlab)
  • Re: matlab help
    ... Are you asking about how to *animate* a line moving from one point to ... You can use polyfit and polyval to get ... in between each plot of the line. ...
    (comp.soft-sys.matlab)
  • Re: PSpice: Any way to "lock" plot window?
    ... >> Joel Kolstad wrote: ... >>> the current plot so that a subsequent simulation will plot its ... you set Restore Last Probe Session in your sim profile ...
    (sci.electronics.cad)