How to overlay two surf plots?
Show older comments

Hi everyone,
I am trying to overlay the contour stroke shape into the colorful surf plot
Here the code i've tried but it doesnt work, it only show the left image above
hold on
surf(X,Y,-M1); surf(-X,Y,M1); %Reflection along y axis
surf(X,Y,Ta); surf(-X,Y,Ta); %Stroke Contour
4 Comments
Walter Roberson
on 14 Mar 2020
surf(X,Y,-M1); surf(-X,Y,M1); %Reflection along y axis
I have to wonder whether that should be
surf(X,Y,-M1); surf(-X,fliplr(Y),M1); %Reflection along y axis
or
surf(X,Y,-M1); surf(-X,flipud(Y),M1); %Reflection along y axis
or something like that?
LEONG SING YEW
on 15 Mar 2020
Walter Roberson
on 15 Mar 2020
It would help if we had your data to work with -- X, Y, and M1 and Ta
LEONG SING YEW
on 15 Mar 2020
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



