Prev: Using Rapid Accelerator from command line function "sim"
Next: Problem using the /r and -nojvm options together
From: Marco on 30 Jun 2010 20:22 Hello Forum, I wrote the following short code: [X Y Z] = meshgrid(1:60,1:60, 1:60); alp=(120*pi/180); bet=(240*pi/180); tt=cos(alp); pp=sin(alp); mm=cos(bet); nn=sin(bet); V =cos(X)+ cos( (tt*X)+ (pp*Y))+2*cos((mm*X)+(nn*Y)); It is three plane waves that interfere: 1 goes along the x-directions and the other two go at 120 and 240 degrees with respect to the one going in the x-direction.... I am trying to plot, on the 3D cube given by X,Y,Z, only those values that are equal to zero....How would I do that? thanks M |