I am working on a project where I am doing a lot of data post-processing in MATLAB. I used the Create a MATLAB File in Mission Planner to convert my tlogs to .mat. After analyzing the data and realizing things were messed up I converted the same tlog to .csv. Upon looking at the same data and performing the same analysis the results were a lot better. I dug deeper and found that the .mat file has bad raw data points whereas the .csv file has the "correct" (as far as I know) raw data.
Also, plotting data from the .csv file matches graphs created in Mission Planner under the Telemetry Logs tab whereas the MATLAB plots do not match.
Is there any reason why this could be? Are the .csv files and .mat files created differently from Mission Planner? On my end I am just looking at the raw data in both file types.