How to rotate a function about the y-axis
Ältere Kommentare anzeigen
I wonder if anyone can help.
I have a Bessel function defined from x=0:20. I am trying to rotate it about the y-axis, so I can get a plot which resembles an Airy function.
I am struggling to write a for loop which will do this. Does anyone have a suggestion or pointers?
Thank you
6 Kommentare
Wayne King
am 5 Okt. 2011
Hi Katy, please post the relevant MATLAB code so somebody can try to help you.
Jan
am 5 Okt. 2011
Do you want to plot dots or a surface? For the later you can take a look into the source of SPHERE: Rotating around the Y-Axis is like drawing a deformed hemisphere.
Katy Pointer
am 5 Okt. 2011
Jan
am 5 Okt. 2011
At first you asked for a method to plot the values. Now you want the results as a matrix. This is a different job.
Katy Pointer
am 5 Okt. 2011
Jan
am 5 Okt. 2011
You can plot a matrix. But rotating the Bessel function leads to a circular shape, not to a rectangular matrix.
Akzeptierte Antwort
Weitere Antworten (2)
Patrick Kalita
am 5 Okt. 2011
0 Stimmen
You might have a look at this similar question:
Jan
am 5 Okt. 2011
What about using AIRY?
v = -20:0.1:20;
m = bsxfun(@plus, v, i*v');
Z = airy(m);
Kategorien
Mehr zu Bessel functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!