## What is it?

Mex-Wcalc refers to
the Matlab MEX interface
to the
Wcalc routines. This interface allows the user to apply the full
power of a high level programming language like Matlab to the
design and analysis of the various Wcalc supported structures.
For example, it is extremely simple to plot the Q and self
resonant frequency of a 220 nH inductor as a function of winding
diameter or to optimize the impedance of a microstrip line to
produce minimum loss. For quick calculations with only a few sets
of parameters, the
standalone GTK-Wcalc is a
simpler tool, but when
complex optimizations or plotting is desired, the Matlab interface
provides tremendous flexibility.

## Using Mex-Wcalc

### Accessing Mex-Wcalc (After Installation)

To use
the Matlab MEX interface,
the mex-wcalc directory must be in your Matlab search path.
This is done by executing the following command at the Matlab
prompt:

` >> addpath /usr/local/libexec/wcalc/mex-wcalc`

You will need to replace `/usr/local`

with the
installation prefix chosen when Wcalc was compiled. If you want
to always have access to Mex-Wcalc when you run Matlab, you can
add the `addpath`

command to your Matlab startup
script.

### Accessing Mex-Wcalc (Before Installation)

If you want to try out Mex-Wcalc before it is installed in its
final location, execute the following command at the Matlab
prompt:

` >> addpath /tmp/wcalc-0.2/mex-wcalc`

You will need to replace `/tmp/wcalc-0.2`

with the
path to the directory where Wcalc has been compiled.

### Running the Mex-Wcalc Functions

Once the Mex-Wcalc path has been added, the Mex-Wcalc
functions appear in the same way as other Matlab toolbox
functions. Complete
documentation on the various functions is available via Matlab's
online help. For a list of functions enter the following at the
Matlab prompt:

` >> help wcalc`

For help on the individual functions use:

` >> help function_name`

## Examples

## Currently available functions

You can view the Matlab help pages for the Mex-Wcalc functions
online:

air_coil_calc - Single layer air core solenoid inductor analysis
air_coil_syn - Single layer air core solenoid inductor synthesis
bars_calc - Self and mutual inductance of a pair of parallel rectangular bars
coax_calc - Coaxial transmission line analysis
coax_syn - Coaxial transmission line synthesis
coplanar_calc - Symmetric coplanar transmission line analysis
coplanar_syn - Single coplanar transmission line synthesis
coupled_microstrip_calc - Coupled microstrip transmission line analysis
coupled_microstrip_syn - Coupled microstrip transmission line synthesis
coupled_stripline_calc - Coupled stripline transmission line analysis
coupled_stripline_syn - Coupled stripline transmission line synthesis
ic_microstrip_calc - Integrated circuit microstrip transmission line analysis
ic_microstrip_syn - Integrated circuit microstrip transmission line synthesis
microstrip_calc - Symmetric microstrip transmission line analysis
microstrip_syn - Single microstrip transmission line synthesis
parallel_rc_p2s - Convert Parallel RC Network into Equivalent Series RC Network
parallel_rc_s2p - Convert Series RC Network into Equivalent Parallel RC Network
parallel_rl_p2s - Convert Parallel RL Network into Equivalent Series RL Network
parallel_rl_s2p - Convert Series RL Network into Equivalent Parallel RL Network
stripline_calc - Symmetric stripline transmission line analysis
stripline_syn - Symmetric stripline transmission line synthesis