how to plot ecg from .mat file

5 ビュー (過去 30 日間)
Deepa
Deepa 2014 年 2 月 22 日
コメント済み: Dishant Arora 2014 年 2 月 22 日
I have downloaded the .mat file from physionet database for mitbih database. I need to plot it and find ecg features. How can I do it?

回答 (1 件)

Dishant Arora
Dishant Arora 2014 年 2 月 22 日
you have to load variables from the mat file to your worksapce, then you can plot them or process them:
load matfileName
  2 件のコメント
Deepa
Deepa 2014 年 2 月 22 日
can you please give me the syntax? iam new to matlab
Dishant Arora
Dishant Arora 2014 年 2 月 22 日
clear all
worksapce % make sure wirkspace panel is showing
load fullfilename % check out workspace panel for the variables loaded
% It might be vectors containing independent and dependent variables
% or a single matrix having different variables in differenet columns
t = yourArray(:,1) % lets say it's a matrix
x = yourArray(:,2)
plot(t,x)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAI for Signals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by