Writetable yields error "operator not supported".
Mostrar comentarios más antiguos
Trying to save a table into .csv with writetable. I keep getting the error message below. Similar outcome with write, or writexls. Any cues? Matlab 2021b
>> writetable(all_data,'myData.csv','Delimiter',',')
Operator '==' is not supported for operands of type 'cell'.
6 comentarios
Walter Roberson
el 6 de Sept. de 2022
What is class(all_data) ? I suspect it is cell, but would need to be table.
Walter Roberson
el 6 de Sept. de 2022
Also, is it possible that the table has non-scalar cells stored inside it? Like all_data.SomeVar(5) might be a cell array? I am excluding here the where the variable is character vectors, which would be stored internally as the entire variable being a cell array of character vectors.
Mateo Leganes
el 6 de Sept. de 2022
Walter Roberson
el 6 de Sept. de 2022
As an experiment, try
restoredefaultpath; rehash toolboxcache
and try again.
You just might have a third-party toolbox that is providing functions that are interfering. For example do you have SPM12 installed ?
Mateo Leganes
el 6 de Sept. de 2022
Walter Roberson
el 6 de Sept. de 2022
I am not familiar with ANSLAB.
Psychtoolbox is usually pretty good about not interfering with MATLAB.
You could add one of those at a time back to your MATLAB path, to see which of the two packages is causing the problem.
Respuestas (0)
Categorías
Más información sobre Installation and Operational Settings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!