Dear octave users,
I am a beginner in octave software. for doing my projects I needed to load data from a \ .dat\ file by octave.
when my \ .dat\ file was like this:
transmitted field:, 0.0, 0.0
transmitted field:, 0.025, 2.499
transmitted field:, 0.050, 8.744
transmitted field:, 0.075, 0.001
.
.
.
I use
the following command to load this tow column number and collect them in a matrix:
fid = fopen (transmited_data_file, 'r');
[val, count] = fscanf (fid, ' transmited field:, %f , %f', Inf);
fclose(fid);
but now my \.dat\ file consist complex number like this:
transmitted field:, 0.0, 0.0transmitted field:, 0.025, 2.49980469004312e-4-3.12491862042745e-6itransmitted field:, 0.050, 8.74462952547355e-4-2.96808679768089e-5itransmitted field:, 0.075,
0.00159104818877218-9.17427368087194e-5itransmitted field:, 0.1, 0.00216403420364298-1.87084801577104e-4itransmitted field:, 0.125, 0.00255133003954042-3.06091873691879e-4itransmitted field:, 0.15, 0.00288402756349901-4.4210946665116e-4itransmitted field:, 0.175, 0.00331455558925927-5.96758485768472e-4i..and above command can not load complex numbers.I really do not know what command I should use
to load these complex number.
It would be a great hand if you help me and I will be great full.
regards,
tina,
address@hidden
tr