MATLAB Answers

0

how to create a char

Asked by Matlaber on 10 Apr 2019
Latest activity Commented on by Matlaber on 11 Apr 2019
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.

  0 Comments

Sign in to comment.

Tags

1 Answer

Cris LaPierre
Answer by Cris LaPierre
on 10 Apr 2019

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 Comments

Matlaber on 11 Apr 2019
Thanks.
I only want to create a file in carsmall as shown in the figure below:
Capture.png
Jan
on 11 Apr 2019
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 on 11 Apr 2019
Thanks.
It works
a = 'hello'
Let say I want to do a multiple char
like this below:
Test1
Test2
Test3
Test4
Test5

Sign in to comment.