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 6739437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:29:22+00:00 2026-05-26T11:29:22+00:00

Matlab Dates mismatch between two sets of data. Help! Please forgive the simplicity of

  • 0

Matlab Dates mismatch between two sets of data. Help!

Please forgive the simplicity of the question but its my first day;

I am working with two sets of time series: 1) Price of S&P 500 since 1977 (daily close & date) and 2) Bond Yield since 1977 (daily close & date).

The problem is that after a few months the the dates are no longer aligned with each other (maybe the bond market was closed one day and the stock market was opened etc) so I have two data sets that are no longer correctly aligned. Before I even start asking about how to replace the gaps (I will use averages when I get to that bridge), I need to know how to get matlab to align the dates for both securities so that I at least know where the gaps are are for each security i.e at which date is one security missing the price. I was thinking of creating a my own (or using the dates from one of the securities) calendar column and then use that as the base date column to stardedise the final output and match the prices to the new data… maybe this is the wrong way of thinking about it but any help would be much appreciated 🙂

  • 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-26T11:29:23+00:00Added an answer on May 26, 2026 at 11:29 am

    You might have a problem if you just use the dates from either one of the series because each of them might have dates that are missing in the other. What I would do is start with a clean 3-column matrix that contains all the weekdays in the date range. This post on the Mathworks blog can offer some insight on how to do it. Then fill in the two other columns with the values from your two data series. This way you will be sure all your values are in the matrix and will make your life simpler if you decide to add more data.

    As for filling in the missing dates, you can just use : the 1-D interpolate function

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

Sidebar

Related Questions

In MATLAB, is it possible to create a single graph of two related data
In Matlab, this seems to be more of algo question but can someone explain
When Matlab is installed in its 64 bit version, it can use only 64
Some MATLAB help needed ! I have an set of 1s and 0s, I
I originally intended to use MATLAB to tackle this problem but the in-built function
Apparently Matlab load loads the data from a .mat file into the variable that
I see in the MATLAB help ( matlab -h ) that I can use
In Matlab, I would like to update the data plotted in a set of
Matlab is giving me the error, Subscripted assignment dimension mismatch however I don't think
MATLAB has a nice silhouette function to help evaluate the number of clusters for

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.