Re: plotting data in MuPAD

From: Ralf Hillebrand (tonner_at_mupad.de)
Date: 02/24/05


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)
    *---*


Relevant Pages

  • Re: New to MuPad
    ... How many MuPad programmers are there?, or were there in 2005 ?. ... there is no syntax error and MuPAD behaves exactly as ... The documentation is hard to read, e.g. due to the red colour and spaces. ... >of acknowledging a bug, in my opinion. ...
    (sci.math.symbolic)
  • Re: MuPad 3.0 extraction of individual eigenvectors
    ... > that case, the aforementioned use of op, map and indexing is still required. ... way of asking MuPAD “if I wanted to extract this, ... > something with it i.e. feed it into another command. ... general not be eigenvectors any longer: ...
    (sci.math.symbolic)
  • MuPAD: TeX output bug?
    ... We have trouble with generating TeX output via generate::TeX in ... Is there anything wrong or does command generate::TeX work only ... Why does MuPAD return wrong result and ...
    (sci.math.symbolic)
  • Re: MuPad 3.0 extraction of individual eigenvectors
    ... It is often the case that a user of MuPad does not want to ... >something with it i.e. feed it into another command. ... What are "standard things" because there ... For e.g. standard data types like lists, sets, sequences ...
    (sci.math.symbolic)
  • MuPAD (Win 3.0 Pro) Minutia
    ... I'm a new'ish MuPAD user and undergraduate student battling with both ... first year calculus and MuPAD 3.0 Pro. ... it either opens in a non-maximized window, or it opens in a maximized ... One of the purposes of the MuPAD's "is" command is to "checks whether ...
    (sci.math.symbolic)