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

  • SEARCH
  • Home
  • 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 6577155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:36:01+00:00 2026-05-25T15:36:01+00:00

I have two sets of data: [t1 ; x] and [t2 ; y] ,

  • 0

I have two sets of data: [t1 ; x] and [t2 ; y], where the ts are in the same range for both, but possibly taking different values. A simple example:

[t1 ; x] = 
     1     2     4
     1     4    16

[t2 ; y] =
     1     3     5
     1     9    25

Here the underlying functions are simple: x = t1.^2 and y = t2.^2. My goal is to get a plot of x versus y. Since the values taken by t aren’t the same, I cannot simply use plot(x,y). For the example, since x == y, I should get a line of slope 1, but plot(x,y) isn’t straight and neither piece has slope 1.

The application is much more complicated than this simple example, and I do not have an underlying function to generate data points. The data are sparse at times, so I cannot afford to lose information by throwing out points that are not in common between t1 and t2.

I’m hoping that Matlab has some built in function that can take the two data sets and extract the dependence between x and y leaving t as an unseen parameter. Anyone know of such a function? In lieu of that, I’m open to suggestions for a good way to go about writing one.

  • 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-05-25T15:36:02+00:00Added an answer on May 25, 2026 at 3:36 pm

    I suggest using splines for this.

    Given tx,x,ty,y, you can generate a graph of x vs y for a range of time points timeRange the following way using the SPLINE command:

    xx = spline(tx,x,timeRange); %# interpolate x vs time
    yy = spline(ty,y,timeRange); %# interpolate y vs time
    
    plot(xx,yy);
    

    If the underlying data are noisy, then you may want to use smoothing splines (e.g. CSAPS), which need, however, the Curve Fitting Toolbox.

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

Sidebar

Related Questions

I have two sets of data points that both relate to the same primary
I have two functions to submit to different sets of data to the same
I have two sets of data with the same level of grainularity, for example
I have two types of data sets. Both are in same size. One contains
I have a class that contains two sets. They both contain the same key
I have two sets of data which I need to join, but there is
I have a two data sets as lists, for example: xa = [1, 2,
I have two sets of data, (Ax, Ay; Bx, By). I'd like to plot
I have two large data sets and I am attempting to reformat the older
I have two sets of points: test1.dat and test2.dat, they do not share same

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.