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

조회 수: 7 (최근 30일)
mohd akmal masud
mohd akmal masud 2023년 11월 10일
댓글: mohd akmal masud 2023년 11월 10일
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.

채택된 답변

KSSV
KSSV 2023년 11월 10일
편집: KSSV 2023년 11월 10일
load matlab.mat ;
x = LineProfile.(1) ;
y = LineProfile.(2) ;
plot(X,y,'r')
hold on
plot(x,smooth(y),'b')
  댓글 수: 4
KSSV
KSSV 2023년 11월 10일
You have the data, go ahead with the function use the variable y.
mohd akmal masud
mohd akmal masud 2023년 11월 10일
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?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by