Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Array from text file
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi! I have a text file that look like the image attached. I need to do an array with all the values between the [ ]. How can I do that?
Many thanks!
댓글 수: 1
Akira Agata
2018년 1월 20일
Could you upload (or copy&paste) this first 3 lines of your data as a text? That would be helpful for everyone here to find better solution.
답변 (1개)
Pawel Jastrzebski
2018년 1월 19일
You can use Matlab import function and then change the import setting to what you need:

- Select output format
- Add Data to your workspace

Or import data using commands, i.e.:
From what I see your data is all numeric so most likely you're going to import is as matrix. To convert matrix to the cell array use:
댓글 수: 1
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!