Rank: 57382 based on 0 downloads (last 30 days) and 0 file submitted
photo

Matt C

E-mail
Lat/Long
42.65751, -71.14137

Personal Profile:

Eduction:
MS Electrical Engineering - Boston University
BS Electrical Engineering - Eastern Nazarene College

Personal interests: Cars, motorcycles, computers, coffee, beer, skiing, and of course, long walks on the beach.


 

Watch this Author's files

 

Comments and Ratings by Matt C View all
Updated File Comments Rating
27 Jul 2009 RF Utilities V1.2 Routines for Smith Chart, TDR, Mixed-Mode S-params, Matching Author: Neill Tucker

Thanks for putting this all together. The code is easy to
read and modify for targeting specific tasks. Great work!

27 Jul 2009 RF Utilities V1.2 Routines for Smith Chart, TDR, Mixed-Mode S-params, Matching Author: Neill Tucker

Change request:

Since I update my MATLAB frequently, I have started placing my MATLAB code in a directory outside of the programs install path so I don't have to worry about losing it between releases. Anyway, I was running through your examples and found that in example8, the data file is hard coded to a path. I recommend that this is changed with the below code.

Old line (23) :
[S11,S21,S12,S22,Freq]=citi2s('C:\matlab\toolbox\rfutils_s\data04.d2');

New code block:
filename = which('example8');
pathstr = fileparts(filename);
citifile = 'data04.d2';
[S11,S21,S12,S22,Freq]=citi2s(strcat(pathstr, filesep, citifile));

This will get the path of example8 and set the citifile path to the same directory as the example. This should alleviate installation specific runtime errors.

20 Apr 2009 ISWHOLE True for integers(whole numbers). Author: Mukhtar Ullah

Needs some TLC and polish; though a good utility function.

20 Apr 2009 ISWHOLE True for integers(whole numbers). Author: Mukhtar Ullah

17 Apr 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

This suite of exportation options is really great! I used to cook up these functions on my own, but with the frontend you created this is now a lot simpler.

When using it I found that the way you are currently implementing ghostscript will destroy the destination file if it already exists. While this may be the intended implementation, let me offer an alternative that could possibly be as useful to others.

I have edited the 'eps2pdf.m' file to allow for appending additional figures to an already existing .pdf file as follows:
<code>

function eps2pdf(source, dest)
% Construct the options string for ghostscript - create new or append
% additional sheets if the destination exists
if (exist(dest, 'file') == 2)
tmp_nam = tempname;
copyfile(dest, tmp_nam);
options = ['-q -dNOPAUSE -dBATCH -dEPSCrop -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="' dest '" "' tmp_nam '" -f "' source '"'];
else
options = ['-q -dNOPAUSE -dBATCH -dEPSCrop -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="' dest '" -f "' source '"'];
end

% Convert to pdf using ghostscript
ghostscript(options);
return

</code>

I hope some of you can find this modification useful!

Contact us