Writetable yields error "operator not supported".
显示 更早的评论
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 个评论
Walter Roberson
2022-9-6
What is class(all_data) ? I suspect it is cell, but would need to be table.
Walter Roberson
2022-9-6
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
2022-9-6
Walter Roberson
2022-9-6
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
2022-9-6
Walter Roberson
2022-9-6
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.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Installation and Operational Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!