how to create a char

1 次查看(过去 30 天)
Matlaber
Matlaber 2019-4-10
评论: Matlaber 2019-4-11
I am trying to follow:
One of the code, said that:
load carsmall
How can I create a file for this "char"
For Others file, i created using excel file and then y=csvread('test10042019.csv');
Capture.PNG
Thank you.

回答(1 个)

Cris LaPierre
Cris LaPierre 2019-4-10
You don't have to create a file. carsmall is a mat file. Loading it loads all the variables you need into your workspace.
I just saw your question about reading your Excel file back in. What is it you are trying to do with this example?
  8 个评论
Jan
Jan 2019-4-11
I do not understand the meaning of the screenshot and do not know, what "in carsmall" means. You can create a char array by:
a = 'hello'
Matlaber
Matlaber 2019-4-11
Thanks.
It works
a = 'hello'
Let say I want to do a multiple char
like this below:
Test1
Test2
Test3
Test4
Test5

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Export to MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by