LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D sinc graph

I'm trying to graph a sinc function on a 3D graph (surface, plot, or parametric).  So far, I've looked at a bunch of the tutorials regarding 3D graphs and haven't had much luck applying those examples to my case.
 
My only other idea is to rotate a single sinc function around the  z-axis, but I'm not even sure how to go about doing that.  Does anyone have any ideas how I might do this?  Attached is an image of what I'm trying to generate.
0 Kudos
Message 1 of 6
(10,627 Views)

Attached is an example of a 3d sin(X)sin(Y) plot.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 6
(10,610 Views)
I'm not sure if this is helpful, but...
In MATLAB, I can generate the 3D sinc function using this:
 
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2);
Z = sin(R)./R;
mesh(X,Y,Z)

 The R parameter basically acomplishes rotation around the Z-axis (a circle, if you will).  You use ".^" as you need pointwise exponentiation (just a quirk in MATLAB).
 
The bold lines are the lines that are most important.  The mesh function just generates the plot.
 
As for 3d graphs in LV, I'm at a loss, as I'm not too experienced with it in LV.  I just wanted to give you a clue on how to accomplish rotation.
 
I hope my post helps.
 
 


@falkpl wrote:

Attached is an example of a 3d sin(X)sin(Y) plot.

 

Paul



I don't think that acomplishes the "sinc" function.  sinc(x) = sin(x)/x in most cases.

Message Edited by agill on 07-20-2006 09:18 AM

Message Edited by agill on 07-20-2006 09:19 AM

0 Kudos
Message 3 of 6
(10,609 Views)
Try this (LabVIEW 7.0)
 

Message Edited by altenbach on 07-20-2006 09:55 AM

Download All
Message 4 of 6
(10,584 Views)
wow.  talking about hitting the nail on the head.  this is awesome.  good job.
0 Kudos
Message 5 of 6
(10,571 Views)
I know that the sinc is different than sin but I had about 2 minuted to get the example out.  Sorry
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 6 of 6
(10,561 Views)