It is my understanding that you are plotting recessions using the ‘recessionplot’ in MATLAB R2021a, but it is not showing the COVID-19 recession (2020M02-2020M04).
This period has been added as recession to the database in the MATLAB R2022a release. The ‘recessionplot’ now plots a recession band for that period in time series. You can update your MATLAB Installation to R2022a or later releases to fix the issue.
Refer to following resource to know more about the steps tot ‘Update an Existing Installation’ of MATLAB:
Additionally, you can refer to the following MathWorks documentation link to learn more about ‘recessionplot’ and its release-updates in MATLAB:
I hope this helps.
