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!