How to read txt file and put the words on a vector and the numbers in a matrix?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi
how do i extract the words and the numbers and put them in a vector(for words) and matrix(for numbers) with this txt file in this format:
Salmorrete, Vila Ló, Pião, Tortolindo, Chão de Frades
0 104 97 33 205
0 0 46 57 410
0 0 0 154 73
0 0 0 0 322
0 0 0 0 0
댓글 수: 1
dpb
2023년 10월 10일
See general use of the new(ish) string class example <word frequency example> for ideas on how to get started.
Post back when/if you get stuck somewhere...
채택된 답변
Star Strider
2023년 10월 10일
댓글 수: 2
Star Strider
2023년 10월 10일
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!