필터 지우기
필터 지우기

how can I plot mesh plot

조회 수: 1 (최근 30일)
ahmed youssef
ahmed youssef 2017년 2월 13일
답변: Star Strider 2017년 2월 14일
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

답변 (2개)

KSSV
KSSV 2017년 2월 14일
clc; clear all ;
[X,Y,Z] = peaks(25) ;
mesh(X,Y,Z,'edgecolor','b')
Read about surf, mesh
  댓글 수: 2
ahmed youssef
ahmed youssef 2017년 2월 14일
No this is not my needs. Sorry you can look at attachment picture
KSSV
KSSV 2017년 2월 14일
The one I showed you is a pseudo code. If you want the exactly attached picture, you have to provide the data dear friend.

댓글을 달려면 로그인하십시오.


Star Strider
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

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by