MATLAB: How to extract data from an text file

exceltext file

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.
code is:
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?

Best Answer

Hello, there are a number of ways to go about this. Please refer to the following links: