how to create a char
이전 댓글 표시
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.
답변 (1개)
Cris LaPierre
2019년 4월 10일
0 개 추천
댓글 수: 8
Cris LaPierre
2019년 4월 10일
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
2019년 4월 10일
Cris LaPierre
2019년 4월 10일
편집: Cris LaPierre
2019년 4월 10일
Create your data in MATLAB, then use the save command to create a mat file of your own containing your data.
Matlaber
2019년 4월 11일
Cris LaPierre
2019년 4월 11일
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
2019년 4월 11일
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
2019년 4월 11일
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
