how to create a char
Mostra commenti meno recenti
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');

Thank you.
Risposte (1)
Cris LaPierre
il 10 Apr 2019
0 voti
8 Commenti
Cris LaPierre
il 10 Apr 2019
If you have not yet done so, I strongly recommend you go through MATLAB Onramp. It's a ~2 hour intro to the basics of using MATLAB.
Matlaber
il 10 Apr 2019
Cris LaPierre
il 10 Apr 2019
Modificato: Cris LaPierre
il 10 Apr 2019
Create your data in MATLAB, then use the save command to create a mat file of your own containing your data.
Matlaber
il 11 Apr 2019
Cris LaPierre
il 11 Apr 2019
Depends on what your data is. If you need help with this, my recommendation would be to go through at least a couple of the initial chapters in MATLAB Onramp to learn about creating variables and importing data.
Creating it in a csv file and loading it also works. It's just you mentioned wanting to create a file like carsmall, which means you have to first create the variables in MATLAB then save.
Matlaber
il 11 Apr 2019
Jan
il 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
il 11 Apr 2019
Categorie
Scopri di più su Workspace Variables and MAT Files in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
