return type of surfc for MatlabR2008a or later

Ben Abbott bpabbott at mac.com
Mon Sep 1 10:18:50 CDT 2008


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

h =

           171
           172
           173
           174
           175
           176
           177
           178
           179
           180
           181
           182
           183


a1 =

     'surface'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'
     'patch'


a2 =

     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]
     [0x1 double]


a3 =

     []
     []
     []
     []
     []
     []
     []
     []
     []
     []
     []
     []
     []

Ben



More information about the Octave-maintainers mailing list