Question: Programming Assignment # 7 Due Monday, November 5th by midnight Topics: Plot / subplot Microstrip line is one of the most popular types of planar

 Programming Assignment # 7 Due Monday, November 5th by midnight Topics:

Programming Assignment # 7 Due Monday, November 5th by midnight

Topics: Plot / subplot

Microstrip line is one of the most popular types of planar transmission lines primarily because it can be fabricated by photolithographic processes and is easily miniaturized and integrated with both passive and active microwave devices. A conductor of width W is printed on a thin, grounded dielectric substrate of thickness d and relative permittivity r. Because some of the field lines are in the dielectric region and some are in air, the effective dielectric constant satisfies the relation:

1

Where l is the effective dielectric constant of the microstrip line.

The effective dielectric constant of a microstrip line is given approximately by:

l=0.12 r

Given the dimensions of the microstrip line, the characteristic impedance can be calculated as

Zo=lSin(W/d) for W/d 1lCos(W/d) for W/d>1

Write one function file and one driver file to compute the values of Zo and call the function microstrip. The driver file should have the following components:

Inputs

Vector W/d, vector r (inputs must be greater than zero), the length of r must be equal to 3.

A while loop statement which validate the values inside both W/d and r. If one of the values for W and r are less or equal to zero, the user needs to be asked again. However, if the user fails the third attempt the program must be finished.

The function file should have the following three components:

Inputs

W/d , and r

The equation for l in terms of r

A combination of a for loop with and if statement which returns the values of Zobase on the relation W/d;

Finally, you should graph Zovs. W/d (inside the function script) as shown in the accompanying figure. In doing so, use thesubplot utility in MATLAB. Your graph should have a title, a legend displayed within the plot, and labels for both the horizontal and vertical axes. The first subplot represents the values of Zo in the case W/d is less or equal than one. Values of Zo for W/d greater than one are displayed in the second subplot. Finally, the third subplot shows the full range of values for Zo.

Sample 1.

Type the value of W/d: 0:0.01:10

Type the value of Er: 1:1:3

Type the value of W/d: 1:0.01:10

Type the value of Er: 1:1:4

Type the value of W/d: -1:0.01:10

Type the value of Er: -1:1:2

Read the manual carefully

Sample 2.

Type the value of W/d: 0.1:0.01:10

Type the value of Er: [0.5 1 1.5]

CS240 Intro Engineering Programming Programming Assignment # 7 Due Monday, November 5th by midnight Topics: Plot / subplot Microstrip line is one of the most popular types of planar transmission lines primarily because it can be fabricated by photolithographic processes and is easily miniaturized and integrated with both passive and active microwave devices. A conductor of width W is printed on a thin, grounded dielectric substrate of thickness d and relative permittivity er. Because some of the field lines are in the dielectric region and some are in air, the effective dielectric constant satisfies the relation: Where is the effective dielectric constant of the microstrip line. The effective dielectric constant of a microstrip line is given approximately by: E0.12 e, Given the dimensions of the microstrip line, the characteristic impedance can be calculated as -leCos(W/d) for w /d > 1 Write one function file and one driver file to compute the values of Zo and call the function "microstrip The driver file should have the following components 1. Inputs Vector Wid, vector er (inputs must be greater than zero), the length of er must be equal to 3 a. 2. A "while" loop statement which validate the values inside both W/d and er. If one of the values for W and er are less or equal to zero, the user needs to be asked again. However, if the user fails the third attempt the program must be finished. The function file should have the following three components: 3. a. Inputs i. W/d, and er b. The equation for e in terms of e c. Acombination of a "for" loop with and "if" statement which returns the values of Zobase on the relation Wid; 4. Finally, you should graph Zovs. W/d (inside the function script) as shown in the accompanying figure. In doing so, use the subplot utility in MATLAB. Your graph should have a title, a legend displayed within the plot, and labels for both the horizontal and vertical axes. The first subplot represents the values of Zo in the case W/d is less or equal than one. Values of Zo for W/d greater than one are displayed in the second subplot. Finally, the third subplot shows the full range of values for Zo. CS240 Intro Engineering Programming Programming Assignment # 7 Due Monday, November 5th by midnight Topics: Plot / subplot Microstrip line is one of the most popular types of planar transmission lines primarily because it can be fabricated by photolithographic processes and is easily miniaturized and integrated with both passive and active microwave devices. A conductor of width W is printed on a thin, grounded dielectric substrate of thickness d and relative permittivity er. Because some of the field lines are in the dielectric region and some are in air, the effective dielectric constant satisfies the relation: Where is the effective dielectric constant of the microstrip line. The effective dielectric constant of a microstrip line is given approximately by: E0.12 e, Given the dimensions of the microstrip line, the characteristic impedance can be calculated as -leCos(W/d) for w /d > 1 Write one function file and one driver file to compute the values of Zo and call the function "microstrip The driver file should have the following components 1. Inputs Vector Wid, vector er (inputs must be greater than zero), the length of er must be equal to 3 a. 2. A "while" loop statement which validate the values inside both W/d and er. If one of the values for W and er are less or equal to zero, the user needs to be asked again. However, if the user fails the third attempt the program must be finished. The function file should have the following three components: 3. a. Inputs i. W/d, and er b. The equation for e in terms of e c. Acombination of a "for" loop with and "if" statement which returns the values of Zobase on the relation Wid; 4. Finally, you should graph Zovs. W/d (inside the function script) as shown in the accompanying figure. In doing so, use the subplot utility in MATLAB. Your graph should have a title, a legend displayed within the plot, and labels for both the horizontal and vertical axes. The first subplot represents the values of Zo in the case W/d is less or equal than one. Values of Zo for W/d greater than one are displayed in the second subplot. Finally, the third subplot shows the full range of values for Zo

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!