how to make a contour with time variable on x-axis
I have a data that contains values of Altitude,Temperature and Time for a single day. Time starts at 00:09:27 and ends on 23:41:57. The altitude varies throughout the day starting from 0 going until around 250 and coming back to 0 and again to 250 and so on. There is certain period within this time that I dont have any data. I want to interpolate the values for it. When I use
contourf(data.Time,data.Altitude,data.Temp)
it gives me an error saying
Input arguments must be numeric or objects which can be converted to double.
How can I overcome this problem? Essentially I want time in x-axis and Temp in y axis and a color bar that indicates the temperature.I have a data that contains values of Altitude,Temperature and Time for a single day. Time starts at 00:09:27 and ends on 23:41:57. The altitude varies throughout the day starting from 0 going until around 250 and coming back to 0 and again to 250 and so on. There is certain period within this time that I dont have any data. I want to interpolate the values for it. When I use
contourf(data.Time,data.Altitude,data.Temp)
it gives me an error saying
Input arguments must be numeric or objects which can be converted to double.
How can I overcome this problem? Essentially I want time in x-axis and Temp in y axis and a color bar that indicates the temperature. I have a data that contains values of Altitude,Temperature and Time for a single day. Time starts at 00:09:27 and ends on 23:41:57. The altitude varies throughout the day starting from 0 going until around 250 and coming back to 0 and again to 250 and so on. There is certain period within this time that I dont have any data. I want to interpolate the values for it. When I use
contourf(data.Time,data.Altitude,data.Temp)
it gives me an error saying
Input arguments must be numeric or objects which can be converted to double.
How can I overcome this problem? Essentially I want time in x-axis and Temp in y axis and a color bar that indicates the temperature. contour MATLAB Answers — New Questions