Hi Rajendra,
The “mdfRead” command reads the .MF4 file and outputs a cell array of timetables. To convert the output “dataChanTable” into .CSV file format, please follow the following steps:
- The command “writetimetable” can be used to convert one timetable at a time in the cell array “dataChanTable” into .CSV format. You can use the following command:
writetimetable(dataChanTable{1},”output.csv”)
- To convert multiple timetables into multiple .CSV files, you can use the following for-loop to loop through the timetables and create distinct .CSV files:
for i = 1:length(dataChanTable)
filename = sprintf('output_%d.csv', i);
writetimetable(dataChanTable{i}, filename);
You can refer to the following documentation to know more about the “writetimetable” command:
.PCD files are point cloud files representing the coordinates of data-points in 3-D space. It is irrelevant to convert the given data into point cloud files.
I hope this answers the query.