Eliminate vertices from surface plot

Hello,
I have this 3D surface plot and I would like to eliminiate the lines that move in the increasing values of AA so that the other lines can be seen more clearly. These are the set of lines parrallel to the light blue ink edit.
How could I do this?
Thank you.

4 comentarios

Pranavkumar Mallela
Pranavkumar Mallela el 17 de Jul. de 2023
Hi, could you share relevant code if possible? Thanks.
Yes, sure
surf(X,Y,Z1,'FaceColor','none','EdgeColor','r')
hold on
surf(X,Y,Z2,'FaceColor','none','EdgeColor','b')
surf(X,Y,Z3,'FaceColor','none','EdgeColor','black')
xlabel('AA')
set(gca,'YScale','log')
set(gca,'ZScale','log')
Where each X and Y are vectors and Z1,Z2,Z3 are matrices
Dyuman Joshi
Dyuman Joshi el 17 de Jul. de 2023
Which lines do you want to eliminate? Can you highlight it in the image?
Fernando
Fernando el 17 de Jul. de 2023
I hope this helps, I understand it maybe wasn't made very clear.

Iniciar sesión para comentar.

 Respuesta aceptada

Supraja
Supraja el 26 de Jul. de 2023
I understand that you want to remove the lines which indicate the increasing values of AA.
You can use the ‘diff’ function in MATLAB, whose documentation link is attached below.
https://www.mathworks.com/help/ident/ref/iddata.diff.html?searchHighlight=diff%20&s_tid=srchtitle_support_results_3_diff%2520
For example if you want to remove the increasing values of y1:
y1_increasing = diff(y1) > 0; % Identify where the line is increasing
y1(y1_increasing) = NaN; % Set the increasing values to NaN

Más respuestas (0)

Productos

Versión

R2022b

Etiquetas

Preguntada:

el 17 de Jul. de 2023

Comentada:

el 27 de Jul. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by