octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: request to run command on matlab


From: Michael D Godfrey
Subject: Re: request to run command on matlab
Date: Sat, 16 Jan 2010 15:35:45 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0

could someone run the command

n = 200;
x = randn(1,n);
y = randn(1,n);
c = sqrt(x.^2+y.^2);
h = scattter (x,y,20,c);
kids = get(h, 'children');
size(kids)
cdat = get (kids(1), 'cdata');
size(cdat)

This should help me see what matlab is doing for the cdata variable of the created patch objects

thanks
David
matlab r2009b:

>> n = 200;
x = randn(1,n);
y = randn(1,n);
c = sqrt(x.^2+y.^2);
h = scattter (x,y,20,c);
kids = get(h, 'children');
size(kids)
cdat = get (kids(1), 'cdata');
size(cdat)
??? Undefined function or method 'scattter' for input arguments of type 'double'.
 
>> h = scatter (x,y,20,c);
>> kids = get(h, 'children');
>> size(kids)

ans =

     1     1

>> cdat = get (kids(1), 'cdata');
size(cdat)

ans =

   200     1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]