Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time
and the second column is frequency:(the file has originally more than 22000
sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132;...
0.35667, 0.23456723;...
0.36789, 0.98674346;...
1.09875, -0.99875654;...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated
message, my apology.
Signal Data file reading
Started by ●September 29, 2009
Reply by ●October 1, 20092009-10-01
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
________________________________
From: "a...@yahoo.ca"
To: m...
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
________________________________
From: "a...@yahoo.ca"
To: m...
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
Reply by ●October 1, 20092009-10-01
Thank you for the response and suggestions.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
________________________________
From: iftekhar naim
To: a...@yahoo.ca; m...
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
________________________________
From: "a...@yahoo.ca"
To: m...
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
________________________________
From: iftekhar naim
To: a...@yahoo.ca; m...
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
________________________________
From: "a...@yahoo.ca"
To: m...
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
Reply by ●October 1, 20092009-10-01
It seems like the format of the file is not correct for dlmread. I guess it may
have text column headings (possibly DataA). The function dlmread expects only
numbers separated by delimiters. You can try after removing those column headers
(if any). If still not woking, you may consider sending us a sample file.
Thanks
Iftekhar
________________________________
From: Atunu Name
To: m...
Sent: Thursday, October 1, 2009 5:10:33 AM
Subject: Re: [matlab] Signal Data file reading
Thank you for the response and suggestions.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
____________ _________ _________ __
From: iftekhar naim
To: atunu64@yahoo. ca; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
____________ _________ _________ __
From: "atunu64@yahoo. ca"
To: matlab@yahoogroups. com
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
Thanks
Iftekhar
________________________________
From: Atunu Name
To: m...
Sent: Thursday, October 1, 2009 5:10:33 AM
Subject: Re: [matlab] Signal Data file reading
Thank you for the response and suggestions.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
____________ _________ _________ __
From: iftekhar naim
To: atunu64@yahoo. ca; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
____________ _________ _________ __
From: "atunu64@yahoo. ca"
To: matlab@yahoogroups. com
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
Reply by ●October 1, 20092009-10-01
Thank you, Iftekhar.
I tried to do this as well. But the error message is now:
DataA = dlmread("test1.asc", ',');
"Mismatch between file and format string.
Trouble reading number from file (row 2, field 1) ==> ;...\n"
Thank you for the help.
________________________________
From: iftekhar naim
To: Atunu Name ; m...
Sent: Thursday, October 1, 2009 6:51:37 PM
Subject: Re: [matlab] Signal Data file reading
It seems like the format of the file is not correct for dlmread. I guess it may have text column headings (possibly DataA). The function dlmread expects only numbers separated by delimiters. You can try after removing those column headers (if any). If still not woking, you may consider sending us a sample file.
Thanks
Iftekhar
________________________________
From: Atunu Name
To: m...
Sent: Thursday, October 1, 2009 5:10:33 AM
Subject: Re: [matlab] Signal Data file reading
Thank you for the response and suggestions.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
____________ _________ _________ __
From: iftekhar naim
To: atunu64@yahoo. ca; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
____________ _________ _________ __
From: "atunu64@yahoo. ca"
To: matlab@yahoogroups. com
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
I tried to do this as well. But the error message is now:
DataA = dlmread("test1.asc", ',');
"Mismatch between file and format string.
Trouble reading number from file (row 2, field 1) ==> ;...\n"
Thank you for the help.
________________________________
From: iftekhar naim
To: Atunu Name ; m...
Sent: Thursday, October 1, 2009 6:51:37 PM
Subject: Re: [matlab] Signal Data file reading
It seems like the format of the file is not correct for dlmread. I guess it may have text column headings (possibly DataA). The function dlmread expects only numbers separated by delimiters. You can try after removing those column headers (if any). If still not woking, you may consider sending us a sample file.
Thanks
Iftekhar
________________________________
From: Atunu Name
To: m...
Sent: Thursday, October 1, 2009 5:10:33 AM
Subject: Re: [matlab] Signal Data file reading
Thank you for the response and suggestions.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
____________ _________ _________ __
From: iftekhar naim
To: atunu64@yahoo. ca; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
____________ _________ _________ __
From: "atunu64@yahoo. ca"
To: matlab@yahoogroups. com
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
Reply by ●October 1, 20092009-10-01
You are welcome, Atunu. I can not guess the problem unless I see the file.
________________________________
From: Atunu Name
To: m...
Sent: Thursday, October 1, 2009 2:00:24 PM
Subject: Re: [matlab] Signal Data file reading
Thank you, Iftekhar.
I tried to do this as well. But the error message is now:
DataA = dlmread("test1. asc", ',');
"Mismatch between file and format string.
Trouble reading number from file (row 2, field 1) ==> ;...\n"
Thank you for the help.
____________ _________ _________ __
From: iftekhar naim
To: Atunu Name ; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 6:51:37 PM
Subject: Re: [matlab] Signal Data file reading
It seems like the format of the file is not correct for dlmread. I guess it may have text column headings (possibly DataA). The function dlmread expects only numbers separated by delimiters. You can try after removing those column headers (if any). If still not woking, you may consider sending us a sample file.
Thanks
Iftekhar
____________ _________ _________ __
From: Atunu Name
To: matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 5:10:33 AM
Subject: Re: [matlab] Signal Data file reading
Thank you for the response and suggestions.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
____________ _________ _________ __
From: iftekhar naim
To: atunu64@yahoo. ca; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
____________ _________ _________ __
From: "atunu64@yahoo. ca"
To: matlab@yahoogroups. com
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.
________________________________
From: Atunu Name
To: m...
Sent: Thursday, October 1, 2009 2:00:24 PM
Subject: Re: [matlab] Signal Data file reading
Thank you, Iftekhar.
I tried to do this as well. But the error message is now:
DataA = dlmread("test1. asc", ',');
"Mismatch between file and format string.
Trouble reading number from file (row 2, field 1) ==> ;...\n"
Thank you for the help.
____________ _________ _________ __
From: iftekhar naim
To: Atunu Name ; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 6:51:37 PM
Subject: Re: [matlab] Signal Data file reading
It seems like the format of the file is not correct for dlmread. I guess it may have text column headings (possibly DataA). The function dlmread expects only numbers separated by delimiters. You can try after removing those column headers (if any). If still not woking, you may consider sending us a sample file.
Thanks
Iftekhar
____________ _________ _________ __
From: Atunu Name
To: matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 5:10:33 AM
Subject: Re: [matlab] Signal Data file reading
Thank you for the response and suggestions.
I actually tried dlmread, textscan, textread, fread and more that are suggested in the matlab help info and online tutorials. Nothing letting me continue working on this ascii data file which has about (22000, 2) data as time and frequency but the different files have different data sizes. I had different type of errors at different attempts while trying to read this datafile but the recent one is just noted below :
Error using ==> dlmread at 145
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> DataA
I can use importdata but how can I manage to use the data as time and frequency dimenstion ? I am sorry if the question is too naive. But I need to apply filtering on this datafile. Usually I see one dimensional audio file but this type of data file I have not found yet as an example on the web.
Thanks for any further suggestions
____________ _________ _________ __
From: iftekhar naim
To: atunu64@yahoo. ca; matlab@yahoogroups. com
Sent: Thursday, October 1, 2009 4:00:57 AM
Subject: Re: [matlab] Signal Data file reading
Hi Atunu,
If I understood your question correctly, you can use the function 'dlmread'. Try the command:
A=dlmread(filename, ',');
Thanks
Iftekhar
____________ _________ _________ __
From: "atunu64@yahoo. ca"
To: matlab@yahoogroups. com
Sent: Tuesday, September 29, 2009 6:53:29 AM
Subject: [matlab] Signal Data file reading
Hello Matlab_DSP Experts,
How can I read the following file snap shot in matlab: the first column is time and the second column is frequency:(the file has originally more than 22000 sample points, I omitted this here for brevity)
Data A = [
0.34234, -.032312132; ...
0.35667, 0.23456723;. ..
0.36789, 0.98674346;. ..
1.09875, -0.99875654; ...
1.34343, 1.34234343];
Thank you for any suggestions.
P.S. I am not sure sure if the email message is gone thorough. For repeated message, my apology.