|
From: | Thomas D. Dean |
Subject: | Re: 3 D plot |
Date: | Thu, 15 Mar 2012 10:15:41 -0700 |
User-agent: | Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120310 Thunderbird/10.0.2 |
On 03/15/12 03:18, Doug Stewart wrote:
N=10; niter = 6182; tmax=55; l=400*10^-4; r= 1.85*10^-4;% in cm d = 2*r; % in cm Ri=333.33;% ohms.cm <http://ohms.cm> Cm = 1*(10^-6); % farad / cm^2 Rm = 20000;% ohms.cm <http://ohms.cm>^2 tau = ((Rm*10^-3)*Cm*10^6);% msec f= 1/(2*pi*tau*(10^-3)); % Hz lambda = (1/2)*(d/(pi*f*Ri*Cm))^(1/2);%cm vvvv=randn(niter,N); x= linspace(0,tmax,niter); z = linspace(0,(l/lambda),N); y = vvvv(1,:); [xx,zz,yy]= meshgrid(x,z,y); mesh(xx,zz,yy) If you plot a constant then you plot will be all one color and have no height! DAS
I get an error from this. Octave 3.6.1 ... mesh(xx,zz,yy) error: invalid value for array property "xdata" error: called from: error:/usr/local/share/octave/3.6.1/m/plot/surface.m atline159, column 7 error:/usr/local/share/octave/3.6.1/m/plot/surface.m atline 51,column 23 error: /usr/local/share/octave/3.6.1/m/plot/mesh.m at line 47, column 7
[Prev in Thread] | Current Thread | [Next in Thread] |