Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:39:14+00:00 2026-06-17T20:39:14+00:00

So I am doing some ECG analysis in MATLAB and so far I have

  • 0

So I am doing some ECG analysis in MATLAB and so far I have detected the key features as shown in the figure below :

output

This is the ground truth :
enter image description here

So how do i replot the first figure such that the x axis ranges from 0 to 10 (as shown in the second image)

I want to do this so that I can measure the time duration between the Q(the red cross) and the S (the peak at the minimum marked with a circle).

So essentially I want to
1) Calibrate 3600 samples into 10 seconds
2) Using the above scaling factor, be able to automatically calibrate any number of samples into the relevant seconds.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:39:15+00:00Added an answer on June 17, 2026 at 8:39 pm

    How did you plot the first figure? If you did not provide any x-axis, as in plot(ecg), the x-tick labels will be enumerated consecutevly in intervals of one. If you do know the corresponding time points t of ecg, you can use plot(t, egg);.

    Since you know the sampling rate and assume consistent intervals between each data point, you can generate t yourself by t = 10.0 / 3600 * (0 : length(ecg)-1). This will create an array with length(ecg) elements starting at 0, with 10.0 per 3600 data points, for any length of ecg.

    To align the horizontal axis limits more nicely than in the first plot, you can then also use xlim([0, t(end)]).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Doing some homework in my CSC 2310 class and I can't figure out this
Doing some work in javascript I have a multidimensional made up in this format
After doing some research, the code that I have come up with is this:
Doing some experiences to understand bit fields Hi have this code: 01 #include <stdio.h>
Doing some jquery animation. I have certain divs set up with an attribute of
Doing some R&D for my company. We are trying to have a listView that
Doing some refactoring in some legacy code I've found in a project. This is
Doing some code reading and stumbled upon this snippet that I haven't seen before:
Im doing some javascript code and im using firefox. i have a problem which
Doing some code reviews lately I came across a number of classes that have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.