Antenna - Theory .com: The Antenna Site

Antenna Basics Antenna Types Smith Charts Antenna Measurements

antenna-theory.com :: View topic - DLM File for FTDT.m
antenna-theory.com Forum Index antenna-theory.com
Antenna Theory
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DLM File for FTDT.m

 
Post new topic   Reply to topic    antenna-theory.com Forum Index -> Questions Related to Antenna Theory
View previous topic :: View next topic  
Author Message
engibeer
Antenna-Theory.com Newbie


Joined: 20 Jul 2012
Posts: 2
Location: United States

PostPosted: Fri Jul 20, 2012 12:23 am    Post subject: DLM File for FTDT.m Reply with quote

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
View user's profile Send private message
bigSteve
Antenna Wizard


Joined: 14 Mar 2009
Posts: 265

PostPosted: Fri Jul 20, 2012 1:04 am    Post subject: Reply with quote

'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
View user's profile Send private message
engibeer
Antenna-Theory.com Newbie


Joined: 20 Jul 2012
Posts: 2
Location: United States

PostPosted: Fri Jul 20, 2012 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    antenna-theory.com Forum Index -> Questions Related to Antenna Theory All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group