I have a colume with DD.MM.YYYY now I want to get YYYY in this colume. How can I do it with matlab? Thank you a lots

 Accepted Answer

Andrei Bobrov
Andrei Bobrov on 18 May 2016
Edited: Andrei Bobrov on 18 May 2016
Let A - you data
year1 = year(datenum(A,'dd.mm.yyyy'))

More Answers (0)

Tags

Asked:

on 18 May 2016

Edited:

on 18 May 2016

Community Treasure Hunt

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

Start Hunting!