octave-maintainers
[Top][All Lists]
Advanced

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

Re: Request for Matlab test


From: Brij Mohan Lal Srivastava
Subject: Re: Request for Matlab test
Date: Tue, 3 Mar 2015 03:02:07 +0530

Here's the output:

ans =

     0     0     1     1

 
z =  3*(1-x).^2.*exp(-(x.^2) - (y+1).^2) ...
   - 10*(x/5 - x.^3 - y.^5).*exp(-x.^2-y.^2) ...
   - 1/3*exp(-(x+1).^2 - y.^2)
 

ans =

     0
     0
     1


ans =

     1
     0
     0


ans =

     0
     1
     0


ans =

     0
     0
     1


ans =

     0
     0
     1


ans =

     1
     0
     0



Attaching the image in case you need.



On Tue, Mar 3, 2015 at 2:45 AM, Pantxo Diribarne <address@hidden> wrote:
Hi,

I would like to know how Matlab handles uipanels and their axes children. Can someone run the following in Matlab?

--------------------------------------------

hf = figure ();
hax = axes (); plot (1:10)
hu = uipanel ();
get (hu, 'position')
%% Is the uipanel drawn above/below  the axes?

set (hax, 'parent', hu)
hc = colorbar ();
hax2 = axes (); peaks ()
%% Is the last axes drawn above/below  the uipanel?

set (hax2, 'parent', hu)
ch = get (hu, 'children');
ch == hax
ch == hax2

axes (hax1);
ch = get (hu, 'children');
ch == hax
ch == hax2

axes (hax2);
ch = get (hu, 'children');
ch == hax
ch == hax2

--------------------------------------------

Thanks in advance,

Pantxo




--
Brij Mohan Lal Srivastava
M.S. by Research (CSE)
IIIT-H, Gachibowli
Hyderabad
+91 77997 28715

Attachment: oc.jpg
Description: JPEG image


reply via email to

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