help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: how loading a data file with complex number from a\ .dat\ file t


From: Tina Shord
Subject: Re: Fw: how loading a data file with complex number from a\ .dat\ file to a matrix in octave
Date: Thu, 20 Oct 2011 12:22:40 -0700 (PDT)

Dear Mr Helm.

You did a great help to me.Thank you very much.
I wish that I could do something to compensate.

regards and best wishes
tina




From: Martin Helm <>
To: Tina Shord <address@hidden>
Cc: "address@hidden" <address@hidden>
Sent: Tuesday, October 18, 2011 3:15 PM
Subject: Re: Fw: how loading a data file with complex number from a\ .dat\ file to a matrix in octave

Am Dienstag, den 18.10.2011, 04:18 -0700 schrieb Tina Shord:
> [fid,msg] = fopen ("~/Desktop/trans.dat","r");
> [val,count] = fscanf (fid," transmitted field:, %f,  %f",Inf);
> fclose (fid);
>
>
Just replace that 3 lines in your m file with

transmited_data_file = "~/Desktop/trans.dat";
val = dlmread (transmited_data_file, ",", 0, 1);


val is a (complex) matrix with 2 columns so I probably do not understand
what you are asking about howto collect that.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]