[Dspforum] How to dump .dat file for MATLAB

Alan Ding alan33d at gmail.com
Thu Oct 15 20:50:46 MDT 2009


I think I got it...

I used:

%Alan Ding
%fft test output generator from data dump from CCS

y=1;
for x=1:2:length(output2)
    temp = output2(x) + i*(output2(x+1));
    output(y) = temp;
    y=y+1;
end

plot(abs(output));

where output2 is from the .dat file and I got rid of the 1st line.

now how do I load data from MATLAB into the DSP...hmmmm

~Alan

On Thu, Oct 15, 2009 at 10:30 PM, Alan Ding <alan33d at gmail.com> wrote:

> Hi all,
>
> I dumped my output 2*N float fft output data into a .dat file in 32bit
> floats.  The output format looks like the following:
>
> 1651 4 228 0 8000
> -3044.0                              ->where samples[0].real starts
> 0.0
> -1027.78
> 401.8829
> -347.1894
> 355.9608
> -800.423
>
> I can't figure out how to easily import this complex float data into
> matlab.  Any advice would be greatly appreciated.
>
> Thanks,
>
> --
> -------------------------------------------------------
> Alan Ding
> Master of Sci, Electrical Engineering
> Johns Hopkins University
>
> Email: alan33d at gmail.com
> Contact #: 4844593290
>



-- 
-------------------------------------------------------
Alan Ding
Master of Sci, Electrical Engineering
Johns Hopkins University

Email: alan33d at gmail.com
Contact #: 4844593290
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://echelonembedded.com/pipermail/dspforum_echelonembedded.com/attachments/20091015/1164e346/attachment.html>


More information about the Dspforum mailing list