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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:48:54+00:00 2026-05-27T00:48:54+00:00

In matlab, is it possible in any way to do the following: By using

  • 0

In matlab, is it possible in any way to do the following:
By using

S = DATESTR(D, 31)

Number           String                Example 
31       'yyyy-mm-dd HH:MM:SS'    2000-03-01 15:45:17

Is it possible for matlab carry out an operation of producing a string which starts and ends at specific days with a pre-defined interval.

For example, if I had data in Excel with a time vector starting at 2009-01-01 00:00:00 and finishing at 2009-10-10 10:00:00 with measurements taken every four minutes, is it possible to type this into matlab? If I’m not clear please let me know.

  • 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-27T00:48:55+00:00Added an answer on May 27, 2026 at 12:48 am

    For producing an array of date strings that start/end on specific dates, with a pre-defined interval, you can do this:

    Convert to a numeric date form, generate the sequence, and then convert back. For example:

    >> datestr(datenum(datevec('2000-03-01 15:45:17')) : 1: datenum(datevec('2000-03-10 15:45:17')))
    
    ans =
    
    01-Mar-2000 15:45:17
    02-Mar-2000 15:45:17
    03-Mar-2000 15:45:17
    04-Mar-2000 15:45:17
    05-Mar-2000 15:45:17
    06-Mar-2000 15:45:17
    07-Mar-2000 15:45:17
    08-Mar-2000 15:45:17
    09-Mar-2000 15:45:17
    10-Mar-2000 15:45:17
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way of detecting how many matlab processes are running on a
Possible Duplicate: text('hebrew string') matlab shalom I am trying to work with hebrew strings
Possible Duplicate: MATLAB: How to vector-multiply two arrays of matrices? Is there a way
It's possible to call .NET from MATLAB, so I thought I would try to
In Matlab, there is, as far as I know, no good way to conditionally
In MATLAB I'm using a couple of java routines I've written to interface with
Is there a way to initialise an array of integers (or possibly any array)
Is it possible to run MATLAB functions from within Python? I search the internet,
In matlab there is a special function which is not available in any of
I've seen that it is possible to call MATLAB functions from VS2010 (VC++). I

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.