Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

why i get 2 signals in the same plot?

2 vues (au cours des 30 derniers jours)
Good mind
Good mind le 27 Nov 2017
Clôturé : Good mind le 27 Mai 2018
this is the code to plot a signal loaded from physionet(MIT-BIH Arrhythmia database) but i get 2 signals in the same plot.what is the problem?
load ('100m.mat');
Ecg=(val-1042)/200;
fs=360;
ts=(0:length(Ecg)-1)/fs;
plot(ts,Ecg);

Réponse acceptée

Sammit Jain
Sammit Jain le 27 Nov 2017
I think you may want to look at the file 100m.mat closely. It's likely that your variable Ecg (coming from val) has two entries instead of just one. How does one entry in 100m.mat look?
If the column 'val' has 2 columns, then use
Ecg = val(:,1)
(or 2 depending on what column is relevant)
Cheers.
  1 commentaire
Good mind
Good mind le 29 Nov 2017
Modifié(e) : Good mind le 29 Nov 2017
thank you.
Source: record mitdb/100 val has 2 rows (signals) and 3600 columns (samples/signal)Duration:0:10 this is from 100m.info i want to plot the signal versus the time. how can i?

Plus de réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by