How to smooth my 3d plot,i tried smooth function but it only works for 2dimensional.
Y is a 201x201 matrix
Y= [201 201]
x = 10:0.1:30;
z = 1:0.01:3;
[X,Z] = ndgrid(x,z);
mesh(X,Z,smooth(Y))

답변 (1개)

Benjamin Kraus
Benjamin Kraus 2017년 11월 9일

0 개 추천

Have you tried conv2?

댓글 수: 1

Sorry, I'm not sure how to use it, i got an error following an example.
x = 10:0.1:30;
z = 1:0.01:3;
[X,Z] = ndgrid(x',z);
mesh(conv2(X,Z,(Y_3D)))
Error using conv2
The first and second arguments must be vectors when the third argument is a matrix.

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

카테고리

도움말 센터File Exchange에서 Interpolation of 2-D Selections in 3-D Grids에 대해 자세히 알아보기

태그

질문:

2017년 11월 9일

댓글:

2017년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by