A data analyst has a CSV file named 'sensor_data.csv' with mixed data types (numbers and text) and a header row. Which function is most suitable for importing this data into MATLAB as a table, preserving the data types and using the header for variable names?
-
A
readmatrix('sensor_data.csv')
-
B
readtable('sensor_data.csv')
-
C
load('sensor_data.csv')
-
D
readcell('sensor_data.csv')