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: Martin Helm
Subject: Re: Fw: how loading a data file with complex number from a\ .dat\ file to a matrix in octave
Date: Tue, 18 Oct 2011 13:45:42 +0200

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]