replacing "zero dates " so as to be empty

1 次查看(过去 30 天)
Dear all I have the following cell vector
'00/00/00'
'00/00/00'
'00/00/00'
'00/00/00'
'00/00/00'
'00/00/00'
'00/00/00'
'01/11/09'
'29/11/09'
'27/12/09'
I want to replace the zero dates so as to be empty, that is
' ’
' '
' '
' '
' '
' '
' '
'01/11/09'
'29/11/09'
'27/12/09'
Is there any way to do that?

采纳的回答

the cyclist
the cyclist 2012-6-29
If C is your cell array, then
C = regexprep(C,'00/00/00','')

更多回答(1 个)

Walter Roberson
Walter Roberson 2012-6-29
emptydate = ' '; %use appropriate number of blanks
YourCell( strcmp(YourCell, '00/00/00') ) = {emptydate};

类别

Help CenterFile Exchange 中查找有关 Dialog Boxes 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by