Clear Filters
Clear Filters

want to change data

1 view (last 30 days)
근영 박
근영 박 on 22 Feb 2022
Commented: 근영 박 on 22 Feb 2022
I want to change "VarName1" into "VarName12" with script.

Accepted Answer

Cris LaPierre
Cris LaPierre on 22 Feb 2022
varname1 = categorical(["2022/02/01";"2022/02/01"])
varname1 = 2×1 categorical array
2022/02/01 2022/02/01
varname12 = datetime(string(varname1),'InputFormat','yyyy/MM/dd')
varname12 = 2×1 datetime array
01-Feb-2022 01-Feb-2022

More Answers (0)

Categories

Find more on Exponents and Logarithms in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!