I have a column vector with the dates in the format "MM/dd/yyyy." I would like to plot this against another vector, but only using the year part of the date. How can I extract the yyyy part and assign it to a new vector variable to be able to plot it?
MATLAB: Plotting only the year of a column vector with full date
dataMATLABvector
Best Answer