hello, i have a raw ECG text file. how can i plot this? any help? response will be appreciated.

66 views (last 30 days)
here is the attached text file.

Accepted Answer

Image Analyst
Image Analyst on 11 Aug 2018
Try this:
data = importdata('106_5.txt')
x = data(:, 1);
y = data(:, 2);
plot(x, y, 'b-', 'LineWidth', 2);
title('ECG Signal', 'FontSize', 20);
xlabel('Time', 'FontSize', 20);
ylabel('Voltage', 'FontSize', 20);
grid on;
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0, 0.04, 1, 0.96]);
  3 Comments
Image Analyst
Image Analyst on 11 Aug 2018
You can click on the magnifying glass toolbar icon, or simply plot less data than the full hundred thousand points.

Sign in to comment.

More Answers (0)

Categories

Find more on Measurements and Feature Extraction in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!