return type of surfc for MatlabR2008a or later
David Bateman
David.Bateman at motorola.com
Mon Sep 1 10:29:55 CDT 2008
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
I 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
will succeed.
D.
--
David Bateman David.Bateman at motorola.com
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
More information about the Octave-maintainers
mailing list