Hi,
I have a question that puzzles me.
On my workspace I have a table as such:
name value
left_precentral_betas 25x8 table
and this is how I created it:
left_precentral_betas = table(left_precentral(:,1),left_precentral(:,2),left_precentral(:,3)...
,left_precentral(:,4),left_precentral(:,5),left_precentral(:,6),...
left_precentral(:,7),left_precentral(:,8), 'VariableNames',...
{'Right Palm Medial', 'Right Back Medial','Left Palm Medial',...
'Left Back Medial','Right Palm Lateral','Right Back Lateral'...
,'Left Palm Lateral','Left Back Lateral'}) ;
yet I can't use writetable function:
writetable(left_precentral_betas,[PATHOUT,'left_motor.txt']);
I get this error:
Error using writetable (line 139)
First argument must be a table.
istable(left_precentral_betas);
gives me 0. If it's not a table, why it's defined as table in my workspace?
If I'm defining the table wrongly, why do I have it as table in my workspace?
and how can I write or save this table/non table as .txt?
Kind regards,
Hatice
6 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793495
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793495
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793500
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793500
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793545
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793545
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793563
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793563
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793565
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793565
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793759
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/503628-table-on-workspace-isn-t-recognized-as-table#comment_793759
Sign in to comment.