How can I delete the same chunck from a column?

I am new to Matlab (coming from R). Sorry if the question is very basic.
I have a 216x8 table. The first column is a Date column which looks like this:
03-Jan-2002 00:00:00
07-Feb-2002 00:00:00
07-Mar-2002 00:00:00
04-Apr-2002 00:00:00
02-May-2002 00:00:00
%I would like to get this though while keeping all the other columns constant:
03-Jan-2002
07-Feb-2002
07-Mar-2002
04-Apr-2002
02-May-2002

댓글 수: 1

Armando-
Suppose your table is in the variable tbl. Try this
tbl.Date.format = "dd-MM-yyyy"
--loren

댓글을 달려면 로그인하십시오.

 채택된 답변

Adam Danz
Adam Danz 2020년 3월 19일

0 개 추천

For table "T" and datetime column "Var1"
T.Var1.Format = 'dd-MMM-yyyy';

댓글 수: 5

Thanks a lot Adam!
Adam Danz
Adam Danz 2020년 3월 19일
Glad I could help.
You might want to checkout timetables instead of regular tables.
Checking out, thanks a lot! Lot of things to learn when moving from a software to another one!
Adam Danz
Adam Danz 2020년 3월 19일
I've used R and I think Matlab is much more intuitive (of course I'm biased).
This is encouraging Adam. I have to say that, even if I have been reading and trying to do some simple things on Matlab only for a day (so just at first impact), I agree with you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

질문:

2020년 3월 19일

댓글:

2020년 3월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by