필터 지우기
필터 지우기

How to to interpolate missing data (two peaks) on 3D graph on MATLAB?

조회 수: 2 (최근 30일)
Gem
Gem 2022년 11월 18일
편집: Gem 2022년 11월 18일
Hello everyone,
I am struggling to interpolate the missing data from 3D scatter plot of data 2 (in the CSV attached file) to estimate two lost peaks, presented as data 1.
Could anyone please suggest me the functions or any solutions to solve the problem?
Thank you very much!
Best regards,
Nguyen Ngoc

채택된 답변

KSSV
KSSV 2022년 11월 18일
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1198108/data2.csv') ;
data = table2array(T) ;
x = data(1,:) ; x(1) = [] ;
y = data(:,1) ; y(1) = [] ;
Z = data(2:end,2:end) ;
z = fillmissing(Z,'linear');
surf(x,y,z)
  댓글 수: 1
Gem
Gem 2022년 11월 18일
편집: Gem 2022년 11월 18일
Dear KSSV,
Your comment can solve the problem.
I also try to apply another fill method such as 'spline' on your codes. It works.
Thank you very much for your kind prompt help!
Best regards,
Nguyen Ngoc

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by