| View previous topic :: View next topic |
| Author |
Message |
engibeer Antenna-Theory.com Newbie
Joined: 20 Jul 2012 Posts: 2 Location: United States
|
Posted: Fri Jul 20, 2012 12:23 am Post subject: DLM File for FTDT.m |
|
|
I would like to run the MATLAB script that performs FTDT here: http://www.antenna-theory.com/antennas/patches/patch6.php
However, the script reads a file
A = dlmread('junk.0');
Where can I get junk.0? I couldn't find it on the page. |
|
| Back to top |
|
 |
bigSteve Antenna Wizard
Joined: 14 Mar 2009 Posts: 265
|
Posted: Fri Jul 20, 2012 1:04 am Post subject: |
|
|
'junk.0' and the rest are just snapshots of the fields, generated by the fdtd.c program. So it outputs a list of numbers for the Ez component fo the field into a bunch of different files.
I think if you run the .c file [execute the code] it should dump out the output files for this script. |
|
| Back to top |
|
 |
engibeer Antenna-Theory.com Newbie
Joined: 20 Jul 2012 Posts: 2 Location: United States
|
Posted: Fri Jul 20, 2012 1:48 am Post subject: |
|
|
Right you are. I compiled and ran the c++ code and it worked great. Well, after some compatibility changes to the matlab script. In case anyone else has problems in Windows 7 and MATLAB R2012a I had to make these changes:
12: mov = VideoWriter(outfile);
13: open(mov)
46: writeVideo(mov, F);
85: F = getframe( figure(1), [0 0 560 420] );
89: close(mov); |
|
| Back to top |
|
 |
|