yang qun New Member Sep 17, 2005 #1 i can use the basic tools in matlab,and write small programs :? now i have a huge txt-file of data,i dont know how to make it into a m-file :? could anybody help me :?: :!:
i can use the basic tools in matlab,and write small programs :? now i have a huge txt-file of data,i dont know how to make it into a m-file :? could anybody help me :?: :!:
yang qun New Member Sep 17, 2005 #3 thanx Thank you , but should i import it number by number? Sorry to bother you , i have been seeking any book i can get they didnt give the practical way [/img]
thanx Thank you , but should i import it number by number? Sorry to bother you , i have been seeking any book i can get they didnt give the practical way [/img]
C checkmate New Member Sep 17, 2005 #4 All you need is to read the documentation. They have a category for File I/O functions. **broken link removed**
All you need is to read the documentation. They have a category for File I/O functions. **broken link removed**
Styx Active Member Sep 17, 2005 #5 Re: thanx yang qun said: Thank you , but should i import it number by number? Sorry to bother you , i have been seeking any book i can get they didnt give the practical way [/img] Click to expand... under the FILE menu is an IMPORT DATE option just use that fialing that use the "dlmread" function
Re: thanx yang qun said: Thank you , but should i import it number by number? Sorry to bother you , i have been seeking any book i can get they didnt give the practical way [/img] Click to expand... under the FILE menu is an IMPORT DATE option just use that fialing that use the "dlmread" function
yang qun New Member Sep 17, 2005 #6 yeah i greatly appreciate your timely help!! now i know it thank you very much
yang qun New Member Sep 17, 2005 #7 me again it's me again i create a extended .txt file in which i type one number 5 command code M=dlmread('data.txt','dlm') it give information error dlm must be a single character what dose it mean? i am confused
me again it's me again i create a extended .txt file in which i type one number 5 command code M=dlmread('data.txt','dlm') it give information error dlm must be a single character what dose it mean? i am confused
Styx Active Member Sep 17, 2005 #8 it means you are trying to read a DLM-limited-file ie 1dlm2 3dlm4 5dlm6 two way around it 1) dlm = ',' M=dlmread('data.txt',dlm) note no quotes around dlm 2) M=dlmread('data.txt',',')
it means you are trying to read a DLM-limited-file ie 1dlm2 3dlm4 5dlm6 two way around it 1) dlm = ',' M=dlmread('data.txt',dlm) note no quotes around dlm 2) M=dlmread('data.txt',',')
yang qun New Member Sep 17, 2005 #9 dose it can compute 1000*100 matrix? maybe my edition is a little old
Styx Active Member Sep 17, 2005 #10 yup it can one row is depicted by a line in the file one colomn is depicted by a delimiter separation 1,2,3,4,5,6,........... 1001,1002,1003,.... 2001,2002,2003,... would be imported as a 1000x100 matrix make sure you are using the correct delimiter
yup it can one row is depicted by a line in the file one colomn is depicted by a delimiter separation 1,2,3,4,5,6,........... 1001,1002,1003,.... 2001,2002,2003,... would be imported as a 1000x100 matrix make sure you are using the correct delimiter