Please send me some feedback
creatingrf [@] gmail.com
~ Octave
~ Meep
~ MPB



Matlab vs Octave
Octave Intro
Toolbox Examples
Toolbox Download

calcBJTBiasBasic.m
calcCascadedNoise.m
calcMicrostripEL.m
calcMicrostripEre.m
calcMicrostripL.m
calcMicrostripMenu.m
calcMicrostripW.m
calcMicrostripZo.m
calcStabilityCircles.m
calcVSWRcircle.m
csv2mdf.m
db2r.m
dbm2watt.m
example1.m
example2.m
example3.m
example4.m
gamma2rl2vswr.m
gammaLoad2gammaIn.m
getFreqDistribution.m
getNextPlotStyle.m
getRandomColor.m
gtoz.m
importCsvColData.m
importCsvFolder.m
importS2P.m
listDir.m
loadMdf.m
materialProperties.m
plotStabilityCircles.m
ptor.m
r2db.m
rtop.m
saveMdf.m
scAddCircle.m
scAddLabels.m
scAddPoint.m
scCreate.m
singleFreqSparams.m
testStability.m
watt2dbm.m
ztog.m


importS2P.m

%%%%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%%%%
%%%% Import sNp file
%%%% - If a second dataset is found, assumes frequency decreases between datasets
%%%% - The return values of sNp_format are useful to find the units of frequency, and
%%%% - to know if the parameters are in real/imaginary(RI) form or mag/angle(MA) form
%%%% - '!' changed to '~' for matlab compatability
%%%% - Currently only works with s2p files
%%%%
%%%% Input:
%%%% folder - name of folder where .sNp is
%%%% filename - name of sNp file (including extension)
%%%%
%%%% Output:
%%%% params - [matrix] - data/parameters in primary dataset of .sNp file
%%%% dataset2 - [matrix] - data in second dataset, if it exists (noise info)
%%%% sNp_format - [cell array of strings] - Describes the type of data
%%%% comments - [cell array of strings] - Any line that starts with '!'
%%%%
%%%% Example sNp_format contents.....
%%%% sNp_format.freq_unit = GHZ
%%%% sNp_format.param_type = Y
%%%% sNp_format.MA_RI = MA
%%%% sNp_format.R = R
%%%% sNp_format.Zo = 50
%%%%
%%%% Usage:
%%%% params = importS2P(filename)
%%%% [params,dataset2] = importS2P(filename)
%%%% [params,dataset2,sNp_format_info] = importS2P(folder,filename)
%%%% [params,dataset2,sNp_format_info,comments] = importS2P(folder,filename)
%%%%
%%%% Example:
%%%% folder = 'sNp_file_folder'
%%%% filename = 'filename.s2p'
%%%% [params,dataset2,sNp_format_info,comments] = importS2P(folder,filename)
%%%%
%%%% curtis | creatingrf[@]gmail.com
%%%% importS2P.m
%%%% Last edited: 6/15/12
%%%% Octave tested: 9/1/13
%%%% Matlab tested: does not work as of 6/15/12
%%%%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Questions/comments:
CREATINGRF [at] GMAIL.COM