Use readtable
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1049830/SensorsAP_example.csv')
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table. The original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
T = 9×75 table
timestamp sequenceNumber_value sensors_loopTimestampUs_value sensors_gnss_0__time_wnc_value sensors_gnss_0__time_tow_value sensors_gnss_0__time_status sensors_gnss_0__position_lon_value sensors_gnss_0__position_lat_value sensors_gnss_0__equirectangularPosition_northing_value sensors_gnss_0__equirectangularPosition_easting_value sensors_gnss_0__equirectangularPosition_status sensors_gnss_0__altitude_amsl_value sensors_gnss_0__altitude_wgs84_value sensors_gnss_0__altitude_status sensors_gnss_0__velocity_east_value sensors_gnss_0__velocity_north_value sensors_gnss_0__velocity_down_value sensors_gnss_0__covariances_position_lat_value sensors_gnss_0__covariances_position_lon_value sensors_gnss_0__covariances_position_altWgs84_value sensors_gnss_0__covariances_velocity_north_value sensors_gnss_0__covariances_velocity_east_value sensors_gnss_0__covariances_velocity_down_value sensors_gnss_0__solutionType_enum sensors_gnss_0__satelliteCount_value sensors_gnss_0__satelliteCount_status sensors_imu_acc_x_value sensors_imu_acc_y_value sensors_imu_acc_z_value sensors_imu_acc_status sensors_imu_gyr_x_value sensors_imu_gyr_y_value sensors_imu_gyr_z_value sensors_imu_gyr_status sensors_imu_gyroMaxNormDiff_value sensors_baro_pressure_value sensors_baro_temperature_value sensors_baro_status sensors_pitot_pressure_value sensors_pitot_temperature_value sensors_pitot_status sensors_lidar_value sensors_lidar_status sensors_battery_0__current_value sensors_battery_0__current_status sensors_battery_0__voltage_value sensors_battery_0__voltage_status sensors_battery_0__integratedCharge_value sensors_battery_0__integratedCharge_status sensors_battery_0__remainingCharge_value sensors_battery_0__remainingCharge_status sensors_battery_0__relativeStateOfCharge_value sensors_battery_0__relativeStateOfCharge_status sensors_temperatures_maxAutopilot_temperature_value sensors_temperatures_maxAutopilot_temperature_status sensors_temperatures_maxAutopilot_margin_value sensors_temperatures_maxAutopilot_source_device_enum sensors_temperatures_maxAutopilot_source_component_enum sensors_temperatures_maxStack_temperature_value sensors_temperatures_maxStack_temperature_status sensors_temperatures_maxStack_margin_value sensors_temperatures_maxStack_source_device_enum sensors_temperatures_maxStack_source_component_enum sensors_temperatures_maxDrone_temperature_value sensors_temperatures_maxDrone_temperature_status sensors_temperatures_maxDrone_margin_value sensors_temperatures_maxDrone_source_device_enum sensors_temperatures_maxDrone_source_component_enum sensors_temperatures_mostCriticalTemperature_temperature_value sensors_temperatures_mostCriticalTemperature_temperature_status sensors_temperatures_mostCriticalTemperature_margin_value sensors_temperatures_mostCriticalTemperature_source_device_enum sensors_temperatures_mostCriticalTemperature_source_component_e sensors_temperatures_outsideAir_value sensors_temperatures_outsideAir_status
__________ ____________________ _____________________________ ______________________________ ______________________________ ___________________________ __________________________________ __________________________________ ______________________________________________________ _____________________________________________________ ______________________________________________ ___________________________________ ____________________________________ _______________________________ ___________________________________ ____________________________________ ___________________________________ ______________________________________________ ______________________________________________ ___________________________________________________ ________________________________________________ _______________________________________________ _______________________________________________ _________________________________ ____________________________________ _____________________________________ _______________________ _______________________ _______________________ ______________________ _______________________ _______________________ _______________________ ______________________ _________________________________ ___________________________ ______________________________ ___________________ ____________________________ _______________________________ ____________________ ___________________ ____________________ ________________________________ _________________________________ ________________________________ _________________________________ _________________________________________ __________________________________________ ________________________________________ _________________________________________ ______________________________________________ _______________________________________________ ___________________________________________________ ____________________________________________________ ______________________________________________ ____________________________________________________ _______________________________________________________ _______________________________________________ ________________________________________________ __________________________________________ ________________________________________________ ___________________________________________________ _______________________________________________ ________________________________________________ __________________________________________ ________________________________________________ ___________________________________________________ ______________________________________________________________ _______________________________________________________________ _________________________________________________________ _______________________________________________________________ _______________________________________________________________ _____________________________________ ______________________________________
1.2194e+09 69 1.2194e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.7084 -1.4547 -13.441 0 37.964 10.221 -5.5171 0 0.85306 99335 73.07 0 -0.042301 51.105 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.545 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.545 0 8 1 7 43.668 0
1.2194e+09 70 1.2194e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.8218 -1.9142 -13.634 0 43.742 15.6 -9.3468 0 0.53474 99334 73.07 0 -0.038273 51.155 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.518 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.518 0 8 1 7 43.571 0
1.2194e+09 71 1.2194e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.6447 -1.6411 -13.043 0 51.024 20.527 -13.336 0 0.34087 99337 73.08 0 -0.037205 51.105 0 0.06 8 0.56264 0 17.12 0 496.8 0 12758 0 97 0 76.576 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.576 0 8 1 7 43.571 0
1.2194e+09 72 1.2194e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.3031 -1.0752 -12.402 0 55.354 24.522 -15.761 0 0.42052 99344 73.07 0 -0.041396 51.135 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.561 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.561 0 8 1 7 43.538 0
1.2194e+09 73 1.2194e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.243 -0.84437 -11.953 0 55.976 27.983 -16.266 0 0.43076 99335 73.08 0 -0.052931 51.095 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.591 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.591 0 8 1 7 43.538 0
1.2194e+09 74 1.2194e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.6089 -1.1942 -11.71 0 56.205 31.319 -15.932 0 0.50664 99333 73.07 0 -0.058207 51.145 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.6 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.6 0 8 1 7 43.635 0
1.2194e+09 75 1.2194e+09 2212 2.166e+08 0 11.406 51.856 -0.1502 13.929 0 178.36 225.34 0 0.038055 -0.054199 -0.14317 0.27874 0.14276 1.1365 0.00037665 0.00022326 0.0017627 9 20 0 -1.9675 -1.9026 -11.638 0 57.681 35.055 -16.399 0 0.35796 99338 73.07 0 -0.055192 51.135 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.573 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.573 0 8 1 7 43.635 0
1.2194e+09 76 1.2194e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.9584 -2.4827 -11.274 0 59.671 38.962 -18.384 0 0.28719 99336 73.08 0 -0.057634 51.09 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.518 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.518 0 8 1 7 43.571 0
1.2195e+09 77 1.2195e+09 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN -1.7045 -2.6583 -10.202 0 61.628 41.506 -21.067 0 0.66216 99344 73.07 0 -0.065034 51.095 0 0.06 8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 76.564 0 8 1 7 88.178 0 17 26 2 88.178 0 17 26 2 76.564 0 8 1 7 43.571 0