Problem animating MuPAD data plots
- From: Richard Kanarek <FirstInitialLastName@xxxxxxxxxxx>
- Date: Mon, 28 Nov 2005 04:17:18 -0500
Greetings.
I have ninety-something pairs of Cartesian coordinates (i.e., x,y
points) for an imaginary race car running on an imaginary race track.
I had wanted to produce an animated plot showing each point, in turn.
(I might also wish to display data on the cars velocity and
acceleration, but this is -- pun intended -- tangential to my query.
<g>)
While producing animated plots of functions has been a tractable
problem, all of my attempts at producing an animating a plot of data
points have thus far failed. Is MuPAD (3.1.1) capable of producing an
animated plot of data points? Anyone care to demonstrate the creation
of a short list of coordinates, and then demonstrate plotting them?
(Feel free to be brief; I can extrapolate.) Any sage advice?
Cordially,
Richard Kanarek
One Failed attempt
------------------
xpos:= import::readdata("E:\\mypath\\xt.txt"," ",NonNested):
ypos:= import::readdata("E:\\mypath\\yt.txt"," ",NonNested):
print(Unquoted, "xpos:"):
type(xpos); nops(xpos);
print(Unquoted, "ypos:"):
type(ypos); nops(ypos);
xpos:
DOM_LIST
99
ypos:
DOM_LIST
99
p:= [plot::Point2d(xpos[i], ypos[i]) $ i=1..99]:
plot(p[random(1..99)()]); // This works (but not for what I want)
plot(p[i] $ i = 1..99); // Ditto
plot(p[a], a=1..99); // This generates the following error msg:
Error: unexpected range argument: a = 1..99 [plot::Canvas::new]
.
- Follow-Ups:
- Re: Problem animating MuPAD data plots
- From: Christopher Creutzig
- Re: Problem animating MuPAD data plots
- From: Ralf Hillebrand
- Re: Problem animating MuPAD data plots
- Prev by Date: Re: maths
- Next by Date: Re: Problem animating MuPAD data plots
- Previous by thread: maxima newbie: how to multiply a matrix with a vector?
- Next by thread: Re: Problem animating MuPAD data plots
- Index(es):