signal manually analysis matlab

조회 수: 8 (최근 30일)
C S
C S 2022년 7월 13일
편집: C S 2023년 8월 27일
f interest to analyse not specific values.
  댓글 수: 1
Abderrahim. B
Abderrahim. B 2022년 7월 13일
편집: Abderrahim. B 2022년 7월 13일
Share more detilas.
Are you trying to extract a region of interest (ROI)t from EMG signal ? Do you know limits (end time and start time) of the ROI ?

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

답변 (1개)

Abderrahim. B
Abderrahim. B 2022년 7월 13일
% Some dummy data
emg_signal = [-10*ones(4000,1) ; -500*ones(8000,1); -15*ones(6000,1) ] ;
% emcg_signal = 1rand()
figure
plot(emg_signal, "LineWidth", 2)
% ROI emg
roi_t = 4000:8000 ;
emg_roi = emg_signal(roi_t) ;
% Some spectral analysis of ROI emg
pspectrum(emg_roi)
  댓글 수: 2
C S
C S 2022년 7월 13일
Thank you. But is there any other way to do it manually. For example, to use a funtion sumilar to ginput. In particular, one function that you allow you to select with your cursor the time of the signal that you want to analyze.
Abderrahim. B
Abderrahim. B 2022년 7월 14일
Use input then . Copy, past and run this code in your MATLAB. input function will not run here (it is not supported).
clear ;
close all ;
% Some dummy data
emg_signal = [-10*ones(4000,1) ; -500*ones(8000,1); -15*ones(6000,1) ] ;
% emcg_signal = 1rand()
plot(emg_signal, "Color", 'k')
title("EMCG Signal")
% ROI emcg
roi_t = input("Enter ROI as row vector (e.g 4000:8000): ") ;
emg_roi = emg_signal(roi_t) ;
% Some spectral analysis of ROI emg
figure
pspectrum(emg_roi)
title("EMG ROI Spectrum ")

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by