% ------------------------------------------------------------ % MATLAB example on how to import and plot an S-parameter data % file obtained with a HP8753B Network Analyzer and Agilent VEE. % % NB: This script assumes that format of the data is frequencies % in Hz and S-parameters in real and imaginary parts. As example % this would be stated as # Hz S RI R 50 in the .s2p file. % % NB: Before running this script, open the .s2p file with a % text editor and remove all lines starting with ! or # so that % the file only contains data and save it. % ------------------------------------------------------------ close all; clear all; clc; data = importdata('S-parameters.s2p'); %