


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions on how to read text files in matlab using the textread function. It explains the different format specifications and their corresponding output types. Examples are given for reading specific fields from a text file and plotting the data.
Typology: Lecture notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



텍스트 파일 읽기 데이터 처리
[a, b, c] =textread('C:\Users\jycho\Desktop\test.txt', '%u %u %c')
temp=flipud(temp) psu=flipud(psu) yyaxis left plot(temp) yyaxis right plot(psu) legend('temp','psu') [num, kor, eng, mat, com, sci] = textread('score1.txt','%u %u %u %u %u %u','headerlines',1) max_eng=- 1 for (i=1:length(eng)) if max_eng<eng(i) max_eng=eng(i) end end disp(max_eng)