4 Day temperature comparison, including current day
Mostrar comentarios más antiguos
How can I include the current day in the 3 day temperature comparison.
[datetime('today')-days(0),datetime('today')], gives an error
6 comentarios
Omer Yasin Birey
el 5 de Feb. de 2019
Hi Mark, in this array you only have current day twice. You should explain more for us to understand.
Guillaume
el 5 de Feb. de 2019
[datetime('today')-days(0),datetime('today')] gives an error
It doesn't for me. If you get an error, always give us the full text of the error message so we now what the problem is (for all we know you're using an old version of matlab without datetime).
And yes, as Omer said, give more details of what you want.
Mark Clark
el 5 de Feb. de 2019
Mark Clark
el 5 de Feb. de 2019
Mark Clark
el 5 de Feb. de 2019
Guillaume
el 5 de Feb. de 2019
Is that the full text of the error message. Usually it also states which line(s) is responsible for the error. This is essential information we need, particularly since I cannot see anywhere in your code where you use [datetime('today')-days(0),datetime('today')].
On the other hand the error message is clear. The two dates you pass must be different, with the second one later than the first. Of course, subtracting 0 days from a date doesn't change that data, so [datetime('today')-days(0),datetime('today')] is twice the same date.
It's unclear what you expected to do with that.
Respuesta aceptada
Más respuestas (3)
KSSV
el 5 de Feb. de 2019
thedates = (datetime('today')-days(3):datetime('today'))'
Mark Clark
el 6 de Feb. de 2019
0 votos
Mark Clark
el 6 de Feb. de 2019
0 votos
Comunidades de usuarios
Más respuestas en ThingSpeak Community
Categorías
Más información sobre Prepare and Analyze Data en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
