Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Gem
Gem el 18 de Nov. de 2022
Editada: Gem el 18 de Nov. de 2022
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

Respuesta aceptada

KSSV
KSSV el 18 de Nov. de 2022
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 comentario
Gem
Gem el 18 de Nov. de 2022
Editada: Gem el 18 de Nov. de 2022
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by