How do i plot the 3d profiles graph located below in matlab.

1 Ansicht (letzte 30 Tage)
Nismeta
Nismeta am 22 Jul. 2014
Kommentiert: Nismeta am 23 Jul. 2014
I am looking to reproduce the graph below. I have the formula and I am using matlab. But I can only get an arc. I cannot get the graph to look like that. Thanks

Akzeptierte Antwort

Joseph Cheng
Joseph Cheng am 22 Jul. 2014
Bearbeitet: Joseph Cheng am 22 Jul. 2014
This should get you close to where you need to go
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
h=figure;
ax=surf(X,Y,Z,'EdgeColor','none');
set(gca, 'Color', 'None')
set(gcf,'Color',[0 0 0])
box on
set(gca,'Ycolor',[1 1 1])
set(gca,'Xcolor',[1 1 1])
set(gca,'Zcolor',[1 1 1])
grid off
set(gca,'linewidth',1.2)
  13 Kommentare
Joseph Cheng
Joseph Cheng am 23 Jul. 2014
Okay well i would recheck your equations and get it to be a function of positional x,y, and z space as it looks like that is the axes the plots are in. If the equation turns out to be deflection and runout from the center you can get the runout from center as a function of x and y.
Nismeta
Nismeta am 23 Jul. 2014
okay thank you, sorry i'm just an intern....

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by