Borrar filtros
Borrar filtros

Only Outline of a 3D Plot Needed

7 visualizaciones (últimos 30 días)
Jasnoor Singh
Jasnoor Singh el 22 de Jun. de 2016
Comentada: KSSV el 22 de Jun. de 2016
I have got the following 2D view of a 3D Plot. Is it possible to just get a plot of the outer line of this curve and eliminate all the inner colors and lines? I just want the outer shape. Thanks in advance.

Respuestas (1)

KSSV
KSSV el 22 de Jun. de 2016
You have to decide at what location of (x,y) you want the z values (pressure in your case). Eg:
[X,Y,Z] = peaks(26);
figure
surf(X,Y,Z);
xlabel('x')
ylabel('y')
zlabel('z')
x = unique(X) ;
y = unique(Y) ;
z = Z(13,:) ;
figure
plot(y,z,'*-k')
  2 comentarios
Jasnoor Singh
Jasnoor Singh el 22 de Jun. de 2016
This will not work in my case since I have generated a surface plot using the curve fitting tool. The image I have posted here is after surface fitting. Any other alternative please?
KSSV
KSSV el 22 de Jun. de 2016
Not a deal..even after surface fitting, you have data in hand. It can be extracted.

Iniciar sesión para comentar.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by