how can I plot mesh plot
1 次查看(过去 30 天)
显示 更早的评论
Hi there, I am asking silly question but I need to know it:) how can I plot mesh signal and color "front" signal with dark color. and leave the rest of the signal as is. see attchment pic
0 个评论
回答(2 个)
Star Strider
2017-2-14
I do not have your data so I created my own.
You may have to experiment with this with your data:
The Code —
x = linspace(-5, 5, 50);
[X,Y] = meshgrid(x);
Z = abs(cos(X) + sin(2*pi*Y/5));
figure(1)
mesh(X, Y, Z)
hold on
fill3([x x(1)], -5*ones(1,size(x,2)+1), [Z(1,:) Z(1,1)], 'k') % Use ‘fill3’ To Colour One Edge
hold off
grid on
It should work with your data with minor modifications.
The Plot —
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!