How to create the following file for this function script header
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a function script which should receive through the header the name of the file that contains a data set. This file is to contain two columns of numbers; the first column x-values, the second column y-values. Finally, the file is to be in ascii format.
Can someone please help me with this?
댓글 수: 0
답변 (1개)
Walter Roberson
2020년 4월 24일
You can load() the file whose name is passed in.
댓글 수: 2
Walter Roberson
2020년 4월 24일
The file extension can be anything other than .mat or .fig in order for MATLAB to guess that it contains text.
I would tend to think that the file would contain values generated by your previous question about how to write two columns of numbers to a file.
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!