Writetable yields error "operator not supported".
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 6 Sep. 2022
What is class(all_data) ? I suspect it is cell, but would need to be table.
Walter Roberson
am 6 Sep. 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
am 6 Sep. 2022
Walter Roberson
am 6 Sep. 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
am 6 Sep. 2022
Walter Roberson
am 6 Sep. 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.
Antworten (0)
Kategorien
Mehr zu Installation and Operational Settings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!