octave-maintainers
[Top][All Lists]
Advanced

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

Re: return type of surfc for MatlabR2008a or later


From: David Bateman
Subject: Re: return type of surfc for MatlabR2008a or later
Date: Mon, 01 Sep 2008 18:16:11 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080725)

Ben Abbott wrote:

On Sep 1, 2008, at 11:29 AM, David Bateman wrote:

Ben Abbott wrote:

On Sep 1, 2008, at 10:42 AM, David Bateman wrote:

Ben Abbott wrote:


I get the same result as Ben Hall did with 2008a.

Then MatlabR2008a is buggy wrt surfc and their new linkdata function. Why am I not surprised :-)


For kicks I downloaded the 2008b beta. The result is below. If you want it I can provide the mat-file, but it appears to give the same result as 2008a.

>> h = surfc(peaks())
a1 = get (h,'type')
a2 = get(h,'children')
a3 = cellfun(@(x) get(x,'type'), get(h,'children'),'UniformOutput', false)
save surfctest.mat a1 a2 a3

For kicks try instead

[x,y,z] =  peaks();
h = surfc(x,y,z,'ZDataSource','z');
for i = 1 : 10
pause 1;
z = 2 * z;
refreshdata;
end

??? Error using ==> pause
Unknown command option.

but the code below works

[x,y,z] =  peaks();
h = surfc(x,y,z,'ZDataSource','z');
for i = 1 : 10
pause (1);
z = 2 * z;
refreshdata;
end

The "peak" peaks at about 10k ;-)

 suspect that will fail, while

[x,y,z] =  peaks();
h = surf(x,y,z,'ZDataSource','z');
for i = 1 : 10
pause 1;
z = 2 * z;
refreshdata;
end


Both surfc and surf work using pause(1).

Ben

Ok I see the ?DataSource properties are associated directly with the surface and patch objects as well. Its still ugly and inconsistent with the rest of this stuff though..

D.


--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary



reply via email to

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