octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with meshz comparison


From: Ben Abbott
Subject: Re: Help with meshz comparison
Date: Sat, 05 Jul 2014 00:10:53 -0400


On Jul 5, 2014, at 12:06 AM, Rik <address@hidden> wrote:

The color that Octave uses for the waterfall portion of a meshz plot is the
minimum value of Z, but Matlab appears to use the mean or median.  Can
someone run the following code in Matlab and send the picture and the data?

Test Code:

Z = peaks ();
h = meshz (Z(20:30, 20:30));
print -dpng tst.png
cdat = get (h, 'cdata');
cdat(1:5, 1:5)

Thanks,
Rik

ans =

    1.8168    1.8168    1.8168    1.8168    1.8168
    1.8168    1.8168    1.8168    1.8168    1.8168
    1.8168    1.8168    3.4790    3.7573    3.6990
    1.8168    1.8168    3.1565    3.5507    3.6013
    1.8168    1.8168    2.6313    3.1121    3.2505


reply via email to

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