help-octave
[Top][All Lists]
Advanced

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

Re: meshc: how to control contour curves?


From: Doug Stewart
Subject: Re: meshc: how to control contour curves?
Date: Wed, 16 Dec 2015 06:23:10 -0500



On Wed, Dec 16, 2015 at 3:00 AM, karl <address@hidden> wrote:
Hi everybody,

short question about meshc. Is there any possibility to control the contour curves, i.e.
number of curves, level, appearance?
I didn't find anything about this in the documentation and googling did not help either.

Thanks
Karl

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



--


you can do it this way.


colormap ('default');
 [X, Y] = meshgrid (linspace (-3, 3, 40));
 Z = sqrt (abs (X .* Y)) ./ (1 + X.^2 + Y.^2);
 mesh(X,Y,Z)
 hold on 
 contour(X,Y,Z,30)

Doug
 

reply via email to

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