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: Ben Abbott
Subject: Re: return type of surfc for MatlabR2008a or later
Date: Mon, 01 Sep 2008 11:18:50 -0400


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



reply via email to

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