### Where To Find This Example

#### AWR Version

...

#### 14

HTML |
---|

<button class="gh-button gh-green" title = "https://awrcorp.com/download/kb.aspx?File=/1314_Examples/Filter_S21_vs_fF_foFo.emz" onclick="window.location.href='https://awrcorp.com/download/kb.aspx?File=/1314_Examples/Filter_S21_vs_fF_foFo.emz' ">Download Project</button> |

#### AWR Version

...

#### 13

HTML |
---|

<button class="gh-button gh-green" title = "https://awrcorp.com/download/kb.aspx?File=/1213_Examples/Filter_S21_vs_fF_foFo.zipemz" onclick="window.location.href='https://awrcorp.com/download/kb.aspx?File=/1213_Examples/Filter_S21_vs_fF_foFo.zipemz' ">Download Project</button> |

### Design Notes

**Filter s21 vs f-fo script.emp**

Whereas Microwave Office plots frequency f as the x-axis, in some applications, like filters, it may be required to plot a response as a function of f/fo on the x-axis. This project plots S21 as a function of normalized frequency f/fo by using output equations equations for a simple behavioral filter.

__Overview__

In order to plot S21 with a modified x-axis of f/fo, this project calculates f/fo x-axis points with output equations. Output equation pulls out the S21 data from the graph, pulls the simulation frequencies using the swpvals variable, sets fo=7GHz, and calculates f/fo. The graph "S21 vs norm f" uses an output equation to plot the S21 against the new x-axis.

__Output Equations__

The variable _FREQ makes the simulation frequency available as a variable withing Microwave Office. In the output equations _FREQ is divided by the chosen center frequency for the example, fo, in order to generate the normalized frequency "fnew" for the new x-axis. The S-parameter data is captured into a variable by the equation statement S21 = Schematic 1: DB(|S[2,1]|).

__Graph on New X-Axis__

The graph "S21 vs norm f" plots S21 on the "fnew" axis of f/fo. The measurement uses an output equation result result

## Schematic - Filter

...

## Graph - S11 and S21

...

## Graph - S21 vs norm f

...