octave-maintainers
[Top][All Lists]
Advanced

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

Re: more ezplot help


From: Ben Abbott
Subject: Re: more ezplot help
Date: Sat, 13 Jul 2013 15:04:52 -0400

On Jul 13, 2013, at 2:51 PM, Rik wrote:

> 7/12/13
> 
> All,
> 
> I need one more test done to explore the behavior of 'circ'.
> 
> What does the following do?
> 
> fh = @(x,y) sqrt(x.^2 + y.^2)
> h = ezsurf (fh, [-3, 2], 'circ')
> axis
> xdata = get (h, 'xdata');
> max (xdata(:))
> 
> Thanks,
> Rik
> 


Rik, I assume you're asking about Matlab?

Ben

fh = @(x,y) sqrt(x.^2 + y.^2)
h = ezsurf (fh, [-3, 2], 'circ')
axis
xdata = get (h, 'xdata');
max (xdata(:))

fh = 

    @(x,y)sqrt(x.^2+y.^2)


h =

  174.0227


ans =

    -5     5    -5     5     0     6


ans =

    3.0324


reply via email to

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