reading the help I changed the time declaration with:
fullDate = datetime('now');
and consequently the if cycle becomes:
if fullDate == datetime('now')
... %outputs current weather
else
... %outputs historic weather
end
now I'm not receiving that error anymore, but it seems like sometimes the if cycle macthes the time with the time input (which is "now") and most of the times it skips to the history part giving me wrong outputs. this means that the time input is not equal to "now" even if I set it...