how to extract data from an text file?
159 Ansichten (letzte 30 Tage)
isamh am 3 Feb. 2020
I have two files, one in excel and one in a text file, how would i obtain column data from the text file even though i did it from an excel file.
filename = 'mct.xlsx'
data = xlsread(filename, 'mct', 'A:D');
Phase1 = data(data(:4)==1,:);
how would i be able to extract this from a text file?
Weitere Antworten (3)
fred ssemwogerere am 4 Feb. 2020
% what does the 'w' mean?
'w' gives write access permission to the file
% also, what does ''%4.4f\n'' mean?
This is a formatting operator that prints each input as a fixed point number having field width of 4, and the number of digits after the decimal point of 4, before proceeding to a new line ("\n").