Error using writetable: expect input to be one of these types
Show older comments
Dear all,
I'm trying to write a simple table with writetable, but I get an error message for which I did not find an explanation even after quite some investigations. The problem is as follows:
>> writetable(table((1:10)'))
leads to the following error message:
"Error using writetable (line 121) Expected input to be one of these types:
char
Instead its type was cell."
>> which writetable
shows: "/Applications/MATLAB_R2016b.app/toolbox/matlab/iofun/writetable.m"
and
>> which write
shows: "write is a built-in method % asyncioimpl.OutputStream method"
I'm sceptical whether the last output is really what I should get.
>> open write
opens a write function which does "Write data to a figure file."
Does anyone have any ideas on what's wrong here?
I'm using MATLAB 9.1.0.441655 (R2016b)
Best,
Christoph
Accepted Answer
More Answers (1)
Peter Perkins
on 23 Mar 2018
which -all write
But I think you're going to have to post a SMALL example of a table for which you see this error.
Categories
Find more on Data Type Identification in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!