PLOTTING COMMANDS (!' ) "' # "*# "!(!' +,



Similar documents
ELECTRONICS and CIRCUIT ANALYSIS using MATLAB

Introduction to Bode Plot

UNIVERSITY OF CALIFORNIA AT BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences. EE105 Lab Experiments

Lab #9: AC Steady State Analysis

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

USE OF A SINGLE ELEMENT WATTMETER OR WATT TRANSDUCER ON A BALANCED THREE-PHASE THREE-WIRE LOAD WILL NOT WORK. HERE'S WHY.

PLOTTING IN SCILAB.

GeoGebra. 10 lessons. Gerrit Stols

PHYSICS 111 LABORATORY Experiment #3 Current, Voltage and Resistance in Series and Parallel Circuits

ANALYTICAL METHODS FOR ENGINEERS

MATLAB Workshop 14 - Plotting Data in MATLAB

Laboratory 4: Feedback and Compensation

(!' ) "' # "*# "!(!' +,

SCHWEITZER ENGINEERING LABORATORIES, COMERCIAL LTDA.

CIRCUITS LABORATORY EXPERIMENT 3. AC Circuit Analysis

Manufacturing Equipment Modeling

RF-Microwaves formulas - 1-port systems

Chapter 22: Electric Flux and Gauss s Law

RLC Series Resonance

Homework Assignment 03

Curve Fitting, Loglog Plots, and Semilog Plots 1

Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization.

Electrical Resonance

Engineering Sciences 22 Systems Summer 2004

Basic Op Amp Circuits

The electrical field produces a force that acts

Lab 1: Introduction to PSpice

Critical thin-film processes such as deposition and etching take place in a vacuum

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Figure 1. Diode circuit model

Unit/Standard Number. High School Graduation Years 2010, 2011 and 2012

I. Turn it on: Press É

SIMULATIONS OF PARALLEL RESONANT CIRCUIT POWER ELECTRONICS COLORADO STATE UNIVERSITY

Diodes have an arrow showing the direction of the flow.

Lesson 3 DIRECT AND ALTERNATING CURRENTS. Task. The skills and knowledge taught in this lesson are common to all missile repairer tasks.

AP1 Electricity. 1. A student wearing shoes stands on a tile floor. The students shoes do not fall into the tile floor due to

RF Network Analyzer Basics

Gerrit Stols

0 Introduction to Data Analysis Using an Excel Spreadsheet

Plotting: Customizing the Graph

PHASOR DIAGRAMS HANDS-ON RELAY SCHOOL WSU PULLMAN, WA. RON ALEXANDER - BPA

Unit2: Resistor/Capacitor-Filters

Keysight Technologies Understanding the Fundamental Principles of Vector Network Analysis. Application Note

Calibration and Linear Regression Analysis: A Self-Guided Tutorial

30. Bode Plots. Introduction

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Electromagnetism Laws and Equations

SERIES-PARALLEL DC CIRCUITS

The D.C Power Supply

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

Magnetic Fields and Their Effects

GeoGebra Statistics and Probability

The KaleidaGraph Guide to Curve Fitting

Parallel Plate Capacitor

GPIB Instrument Control

S-Parameters and Related Quantities Sam Wetterlin 10/20/09

ELECTRIC FIELD LINES AND EQUIPOTENTIAL SURFACES

MATLAB Control System Toolbox Root Locus Design GUI

EE 402 RECITATION #13 REPORT

Transmission Lines. Smith Chart

S-DOMAIN ANALYSIS: POLES, ZEROS, AND BODE PLOTS

Edmund Li. Where is defined as the mutual inductance between and and has the SI units of Henries (H).

Objectives. Electric Current

Plots, Curve-Fitting, and Data Modeling in Microsoft Excel

KaleidaGraph Quick Start Guide

Lab 3: Introduction to Data Acquisition Cards

TAN δ (DELTA) CABLE TESTING OVERVIEW AND ANSWERS TO FREQUENTLY ASKED QUESTIONS. What Is Tan δ, Or Tan Delta?

Universal Simple Control, USC-1

Further Mathematics for Engineering Technicians

Ver 3537 E1.1 Analysis of Circuits (2014) E1.1 Circuit Analysis. Problem Sheet 1 (Lectures 1 & 2)

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

(Least Squares Investigation)

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION MATHEMATICS B. Thursday, January 29, :15 a.m. to 12:15 p.m.

Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors. Content of the Precalculus Subpackage

AMPLIFIED HIGH SPEED FIBER PHOTODETECTOR USER S GUIDE

Understand the Sketcher workbench of CATIA V5.

Project Instruction Booklet. CNC Milling Machine Project

MATLAB. Input and Output

Magnetic Field of a Circular Coil Lab 12

Frequency Response of Filters

Introduction to the Smith Chart for the MSA Sam Wetterlin 10/12/09 Z +

Applying a circular load. Immediate and consolidation settlement. Deformed contours. Query points and query lines. Graph query.

Chapter 12: The Operational Amplifier

Algebra and Geometry Review (61 topics, no due date)

Phasors. Phasors. by Prof. Dr. Osman SEVAİOĞLU Electrical and Electronics Engineering Department. ^ V cos (wt + θ) ^ V sin (wt + θ)

EE 1202 Experiment #4 Capacitors, Inductors, and Transient Circuits

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Physics 221 Experiment 5: Magnetic Fields

11: AUDIO AMPLIFIER I. INTRODUCTION

Fundamentals of Signature Analysis

Lab E1: Introduction to Circuits

Lecture 24. Inductance and Switching Power Supplies (how your solar charger voltage converter works)

Understanding Poles and Zeros


Understanding Power Impedance Supply for Optimum Decoupling

BASIC ELECTRONICS AC CIRCUIT ANALYSIS. December 2011

Three phase circuits

Reading: HH Sections , (pgs , )

How to make a Quick Turn PCB that modern RF parts will actually fit on!

Amplifier Teaching Aid

Transcription:

PLOTTING COMMANDS

Logarithmic and semi-logarithmic plots can be generated using the commands loglog, semilogx, and semilogy. The use of the above plot commands is similar to those of the plot command discussed in the previous section. The description of these commands are as follows: loglog(x, y) - generates a plot of log10(x) versus log10(y) semilogx(x, y) - generates a plot of log10(x) versus linear axis of y semilogy(x, y) - generates a plot of linear axis of x versus log10(y) It should be noted that since the logarithm of negative numbers and zero does not exist, the data to be plotted on the semi-log axes or log-log axes should not contain zero or negative values.

The gain versus frequency of a capacitively coupled amplifier is shown below. Draw a graph of gain versus frequency using a logarithmic scale for the frequency and a linear scale for the gain.

MATLAB Script % Bode plot for capacitively coupled amplifier f = [20 40 80 100 120 2000 5000 8000 10000... 12000 15000 20000]; g = [ 5 10 30 32 34 34 34 34 32 30 10 5]; semilogx(f, g) title('bode plot of an amplifier') xlabel('frequency in Hz') ylabel('gain in db') The plot is shown in Figure 2.5. The MATLAB script file is ex2_2.m.

Figure 2.5 Plot of Gain versus Frequency of an Amplifier

A polar plot of an angle versus magnitude may be generated using the command polar(theta, rho) where, theta and rho are vectors, with the theta being an angle in radians and rho being the magnitude. When the grid command is issued after the polar plot command, polar grid lines will be drawn. The polar plot command is used in the following example.

A complex number z can be represented as z = re j. The n th power of the complex number is given as z n = r n e jn. If r = 1.2 n and = 100, use the polar plot to plot z versus n for n = 1 to n = 36.

MATLAB Script % polar plot of z r = 1.2; theta = 10*pi/180; angle = 0:theta:36*theta; mag = r.^(angle/theta); polar(angle,mag) grid title('polar Plot')

MATLAB has basically two display windows: a command window and a graph window. The hardware configuration an operator is using will either display both windows simultaneously or one at a time. The following commands can be used to select and clear the windows: shg - shows graph window any key - brings back command window clc - clears command window clg - clears graph window home - home command cursor

The graph window can be partitioned into multiple windows. The subplot command allows one to split the graph window into two subdivisions or four subdivisions. Two sub-windows can be arranged either top or bottom or left or right. A fourwindow partition will have two sub-windows on top and two subwindows on the bottom. The general form of the subplot command is subplot(i j k)

The digits i and j specify that the graph window is to be split into an i-by- j grid of smaller windows. The digit k specifies the k th window for the current plot. The sub-windows are numbered from left to right, top to bottom. For example, % x = -4:0.5:4; y = x.^2; % square of x z = x.^3; % cube of x subplot(211), plot(x, y), title('square of x') subplot(212), plot(x, z), title('cube of x') will plot y = x 2 in the top half of the graph screen and z = x 3 will be plotted on the bottom half of the graph screen. The plots are shown in Figure 2.7.

Figure 2.7 Plots of x 2 and x 3 using Subplot Commands.

The coordinates of points on the graph window can be obtained using the ginput command. There are two forms of the command: [x y] = ginput [x y] = ginput(n) [x y] = ginput command allows one to select an unlimited number of points from the graph window using a mouse or arrow keys. Pressing the return key terminates the input. [x y] = ginput(n) command allows the selection of n points from the graph window using a mouse or arrow keys. The points are stored in vectors x and y. Data points are entered by pressing a mouse button or any key on the keyboard (except return key). Pressing the return key terminates the input.

! 2.1 The repulsive coulomb force that exists between two protons in thenucleus of a conductor is given as q1q 2 F = 2 4πε 0r 1 9 2 2 = 8.99x10 Nm / C If q 1 =q 2 =1.6x10-19 C, and 4πε, sketch a graph of force versus radius r. Assume a radius from 0 1.0x10 15 to 1.0x10 14m with increments of 2.0x10 15 m. 2.2 Plot the voltage across a parallel RLC circuit given as v( t) = 5e 2t sin(100πt ) 2.3 The table below shows the grades of three examinations of ten students in a class. (a) Plot the results of each examination. (b) Use MATLAB to calculate the mean and standard deviation of each examination.

! 2.4 The voltage v and current I of a certain diode are related by the expression i = I exp[ v /( nv s T )] If I S = 1.0x10-14 A, n = 2.0 and V T = 26 mv, plot the current versus voltage curve of the diode for diode voltage between 0 and 0.6 volts.

END POINT FOR THIS PART