Rank: 23719 based on downloads (last 30 days) and 0 files submitted
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.

Professional Interests:
Electrical Engineering (MMIC Design, Semiconductor Modeling), Computer Programming (Perl, Python, Matlab)

 

Watch this Author's files

 

Comments and Ratings by Matt View all
Updated File Comments Rating
27 Jul 2009 RF Utilities V1.1 Routines for Smith Chart, TDR, Mixed-Mode S-params 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.1 Routines for Smith Chart, TDR, Mixed-Mode S-params 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!

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com