필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

why i get 2 signals in the same plot?

조회 수: 2 (최근 30일)
Good mind
Good mind 2017년 11월 27일
마감: Good mind 2018년 5월 27일
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);

채택된 답변

Sammit Jain
Sammit Jain 2017년 11월 27일
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
Good mind
Good mind 2017년 11월 29일
편집: Good mind 2017년 11월 29일
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?

추가 답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by