To pull the time column data from an Excel file into Matlab, you can use the "importdata" function.
Save the Excel file as a CSV (comma-separated values) file.
Open Matlab and use the "importdata" function to load the CSV file. Make sure to specify the delimiter as a comma.
main.m39 chars2 lines
main.m179 chars3 lines
Alternatively, if the time data is stored in a formatted date-time string in Excel (e.g. "2022-01-01 12:00:00"), you can use the readtable function to load the data as a table and then access the time column using the table variable name.
main.m208 chars4 lines
gistlibby LogSnag