how to define a variable with dates

I want to define a variable "NYC" that will take a value for each day of 1/1/2021 to 3/31/2021. How can one do this?

 Accepted Answer

Steven Lord
Steven Lord on 14 Apr 2021
Adapt the example on this documentation page. It won't require a lot of modification.

More Answers (0)

Categories

Products

Release

R2020b

Tags

Asked:

on 14 Apr 2021

Answered:

on 14 Apr 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!