Re: plotting data in MuPAD
From: Ralf Hillebrand (tonner_at_mupad.de)
Date: 02/24/05
- Next message: Richard Kanarek: "Re: MuPAD bugs: series can return 6 terms only"
- Previous message: Brad Cooper: "Re: MuPAD bugs: series can return 6 terms only"
- In reply to: John Starrett: "Re: plotting data in MuPAD"
- Next in thread: John Starrett: "Re: plotting data in MuPAD"
- Reply: John Starrett: "Re: plotting data in MuPAD"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Feb 2005 09:31:02 +0100
John Starrett wrote:
>> I find in the documentation that there is supposed to be something
>> called Listplot, but when I try to use it, MuPAD says the command does
>> not exist:
>>
>> plot(plot::Listplot(A, Style = Points, Color = RGB::Red))
>> Error: plot::Listplot does not exist, see ?plot
>>
plot::Listplot was introduced in MuPAD 3.1. Is it possible that
you have MuPAD Pro 3.0 and 3.1 on your computer? It seems to me
that you have read the 3.1 documentation and try the above command in
3.0.
> I solved the problem. For the benefit of anyone else who is interested:
>
> A:=import::readdata("C:/a.dat",NonNested):
> Num:=nops(A);
>
> Adata := {}:
> for i from 1 to Num do
> [p, q] := [i,A[i]];
> Adata := Adata union {[p, q]};
> end_for:
>
> Bdata := coerce(Adata, DOM_LIST):
or even shorter:
Bdata := zip([$ 1..nops(A)], A, (x, y)->[x, y])
> plot(plot::PointList2d(Bdata));
--
*---* MuPAD -- The Open Computer Algebra System
*---*|
|*--|* Ralf Hillebrand (tonner@mupad.de)
*---*
- Next message: Richard Kanarek: "Re: MuPAD bugs: series can return 6 terms only"
- Previous message: Brad Cooper: "Re: MuPAD bugs: series can return 6 terms only"
- In reply to: John Starrett: "Re: plotting data in MuPAD"
- Next in thread: John Starrett: "Re: plotting data in MuPAD"
- Reply: John Starrett: "Re: plotting data in MuPAD"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|