Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Vectors must be the same length - No idea why they are not!

1 visualización (últimos 30 días)
Daphne PARLIARI
Daphne PARLIARI el 18 de En. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi everyone!
I am attaching a code that eventually will evaluate the performance of a numerical model against observational values. Up to this point, I am inserting .xlsx files that contain measurements from several weather stations.
The error appears in line 182, when I try to plot mean hourly values of temperature. Y axis should be Hourly_Temp_mean and X axis H_date_Unique. In my mind these two must have equal dimensions but it appears that this is not the case. Of course with different dimensons, the plot cannot be produced.
Any contributions will be much appreciated....
  4 comentarios
Daphne PARLIARI
Daphne PARLIARI el 19 de En. de 2020
Yes, the rdir is the one you understood.
Instead of the 'C:\PhD\Projects\LIFE ASTI\C.3\Weather station data\from desktop\Obs. data 4 Keppas\', you can just try to access the two .xlsx I attached along with my question and you'll get the idea of my problem.
Sindar
Sindar el 20 de En. de 2020
Have your code debug/pause at the error and check the size of your variables

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by