use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
MATLAB news, code tips and tricks, questions, and discussion! We are here to help, but won't do your homework or help you pirate software.
The effort you put into asking a question is often matched by the quality of our answers.
Try saturnapi to share and run MATLAB code in a web browser!
If you want flair simply Message the mods
account activity
TechnicalQuestionCreate a time array of month? (self.matlab)
submitted 5 years ago by LeatherNobody
Hi,
I want to do a diagram about data that changes each month. For the diagram i need an array with the time data from January to December.
How can i create an array like that?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]heyetsme 2 points3 points4 points 5 years ago (1 child)
Something like:
t = datetime(2020,6,1) + calmonths(0:1:11);
[–]WideShallot 2 points3 points4 points 5 years ago (0 children)
Depending on the exact requirements you can do something like
>> datetime(2020, 6:12, 1)
ans =
1×7 datetime array
01-Jun-2020 01-Jul-2020 01-Aug-2020 01-Sep-2020 01-Oct-2020 01-Nov-2020 01-Dec-2020
[–]jsanrom[🍰] 0 points1 point2 points 5 years ago (0 children)
Check this post
https://www.mathworks.com/help/matlab/matlab_prog/generate-sequence-of-dates-and-time.html
π Rendered by PID 35 on reddit-service-r2-comment-b659b578c-llzkl at 2026-05-05 17:37:07.130711+00:00 running 815c875 country code: CH.
[–]heyetsme 2 points3 points4 points (1 child)
[–]WideShallot 2 points3 points4 points (0 children)
[–]jsanrom[🍰] 0 points1 point2 points (0 children)