MATLAB Answers

Removing hours and minutes from date

28 views (last 30 days)
alpedhuez
alpedhuez on 12 Jun 2018
Commented: Walter Roberson on 13 Jun 2018
I have an entry
04/20/2016 00:00
I want to set it just to
04/20/2016
Please advise the steps.

  22 Comments

Stephen Cobeldick
Stephen Cobeldick on 13 Jun 2018
@alpedhuez: I am asking for an exact definition of what a "conflict" is. Because any code checking tool would need an exact definition of "conflict", which so far you have not given us. Simply saying "... this type of analysis" has no meaning to me, or to any interpreter, which is why I am asking you what your definition is. I am genuinely interested. I wrote about one possibility (redefining variables), but I am interested to know what you mean by a "conflict". Please help me understand what you want to classify as a "conflict":
* changing a variable's value
* changing a variable's class
* accessing a variable (main function)
* accessing a variable (nested function)
* accessing a variable (evalin, etc)
* indexing into a variable
* clearing a variable
* ... ?
And how is the interpreter supposed to know the difference between these:
  • accessing a variable (a conflict)
  • accessing a variable (I just want to access that variable)
??
alpedhuez
alpedhuez on 13 Jun 2018
At this moment I have deadlines so I need to get back to this issue then. Thank you for understandings.
Walter Roberson
Walter Roberson on 13 Jun 2018
Conflicts between variables hint that you should be breaking your code up into smaller functions.

Sign in to comment.

Answers (0)

Sign in to answer this question.

Tags

Products