How to plot the graph from the data table as attached.

Dear all,
I have the data table as attached,
Anyone can help me how to plot the graph from the data table as attached,
Then I want to apply the gaussian filter for smoothing the data.

 Respuesta aceptada

KSSV
KSSV el 10 de Nov. de 2023
Editada: KSSV el 10 de Nov. de 2023
load matlab.mat ;
x = LineProfile.(1) ;
y = LineProfile.(2) ;
plot(X,y,'r')
hold on
plot(x,smooth(y),'b')

4 comentarios

Dear @KSSV,
Is it other function ather than smooth?
like gaussian and so on,
because it look the same after smooth
KSSV
KSSV el 10 de Nov. de 2023
You have the data, go ahead with the function use the variable y.
Dear @KSSV,
I used this command:
clc
clear all
close all
load matlab.mat ;
x = LineProfile.(1) ;
y = LineProfile.(2) ;
plot(x,y,'r')
hold on
plot(x,smoothdata(y),'b')
where I smoothdata(y), and the graph plot as right.
what I want is like the left picture, the red line
can help me?

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 10 de Nov. de 2023

Comentada:

el 10 de Nov. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by