help-octave
[Top][All Lists]
Advanced

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

Re: 3D plot from a matrix


From: Andy Buckle
Subject: Re: 3D plot from a matrix
Date: Mon, 19 May 2014 14:08:35 +0100




On 19 May 2014 13:50, guido.bonalumi <address@hidden> wrote:
This <http://web.jhu.edu/sebin/z/l/Ave_Vorticity-ChFr-0_722.png>   is want I
want. Is it possible? I have already created the colormap.

This is not far off. Junk data.

x=1:20;
y=1:25;
[X Y]=meshgrid(x,y);
Z=cos(X).^2.*(Y-10).^2;
contourf(X,Y,Z);
hold on
U=cos(X).*(Y-10).^2;
V=sin(X).*(Y-10).^2;
quiver(X,Y,U,V,'k-')

/* andy buckle */

reply via email to

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