How to properly read a csv saved cell array.
Hi,
I am new with Matlab and I would like to know why I am not reading a cell array as I saved it. i.e. I have a cell of arrays (3834×1) and I saved it as csv file.
writecell(X_train_past, …
strcat(train_data_path, ‘past_features.csv’), …
"Delimiter",";")
However, when reading the cell I got a cell of 926×864, totally different of the saved cell array. Is there any way to get the same shape when reading a cell as it was writen ?
opts = detectImportOptions(test_path);
opts.LineEnding = ‘n’;
C = readcell(test_path,opts);
Thanks a lot in advance,
RafaHi,
I am new with Matlab and I would like to know why I am not reading a cell array as I saved it. i.e. I have a cell of arrays (3834×1) and I saved it as csv file.
writecell(X_train_past, …
strcat(train_data_path, ‘past_features.csv’), …
"Delimiter",";")
However, when reading the cell I got a cell of 926×864, totally different of the saved cell array. Is there any way to get the same shape when reading a cell as it was writen ?
opts = detectImportOptions(test_path);
opts.LineEnding = ‘n’;
C = readcell(test_path,opts);
Thanks a lot in advance,
Rafa Hi,
I am new with Matlab and I would like to know why I am not reading a cell array as I saved it. i.e. I have a cell of arrays (3834×1) and I saved it as csv file.
writecell(X_train_past, …
strcat(train_data_path, ‘past_features.csv’), …
"Delimiter",";")
However, when reading the cell I got a cell of 926×864, totally different of the saved cell array. Is there any way to get the same shape when reading a cell as it was writen ?
opts = detectImportOptions(test_path);
opts.LineEnding = ‘n’;
C = readcell(test_path,opts);
Thanks a lot in advance,
Rafa cell arrays MATLAB Answers — New Questions