ill2000m
Electrical
- Oct 7, 2003
- 7
I have a text file and i would like to read its content into a vector x in my m file, i looked at help section in Matlab and tried many function but it still doesnt work, does anyone know how to do it .. e.g
content of my text file is and its in the directory C:\work\work.txt
A former senior Partner whose association with the firm dates back to 1958, John "retired" in 1995 only to come back as the firm's Specialist Consultant in Clinical Negligence. A member of the Law Society Clinical Negligence panel, John has a formidable reputation both locally and regionally.
Educated at Gordonstoun and Liverpool University, John qualified as a solicitor in 1958 after "articles" in a practice on Merseyside.
i tried to command in my m file as
[x] = textread('C:\work\work.txt ','%c')
i am not quite sure which format i should use, but all the content in my text file are ASCII character ...
content of my text file is and its in the directory C:\work\work.txt
A former senior Partner whose association with the firm dates back to 1958, John "retired" in 1995 only to come back as the firm's Specialist Consultant in Clinical Negligence. A member of the Law Society Clinical Negligence panel, John has a formidable reputation both locally and regionally.
Educated at Gordonstoun and Liverpool University, John qualified as a solicitor in 1958 after "articles" in a practice on Merseyside.
i tried to command in my m file as
[x] = textread('C:\work\work.txt ','%c')
i am not quite sure which format i should use, but all the content in my text file are ASCII character ...