ECE210 Spice/MATLAB Project 1 Fall 2011 Voltage Divider Analysis and Simulation

Size: px
Start display at page:

Download "ECE210 Spice/MATLAB Project 1 Fall 2011 Voltage Divider Analysis and Simulation"

Transcription

1 ECE210 Spice/MATLAB Project 1 Fall 2011 Voltage Divider Analysis and Simulation This three-part project assignment will count for 30 homework points. Since the major portion of the project involves a MATLAB component, please plan ahead to assure you can complete it on time. It is very important that your review the Project Requirements document before you begin your work. Failure to follow those requirements will lead to deductions in this assignment. The grading total for the 3 parts will be: Part 1 5 homework points Part 2 5 homework points Part 3 20 homework points Create a document file [named using the format FirstnameLastnameProject1.(doc or docx)]. This document should begin with a 2-3-inch margin at the top followed by your name and Student ID. Note the additional document requirements for each part of the project. The problem: We have the following circuit shown in Figure 1 in which we will have a value for R1, a value for Vin, and 9 values for R2. Determine the value for Vout as a function of the component values. Figure 1 Voltage divider circuit. Part 1: Determine the single values for Vin, R1, and the nine values for R2 in the following way: Begin with the nine digits in your Student ID and consider each one to be an integer. Add the value of 1 to each of these integers. Then find the cumulative sum of these integers and assign these values to R2 in Ohms. For example, consider the arbitrary Student ID The 9 values for R2 would then be 2, 4, 8, 10, 15, 17, 23, 33, and 37. The value for V1 should be the fourth number in the R2 array, in volts (10 Volts in this case). The value for R1 should be the fifth number in the R2 array, in Ohms (15Ω in this case). Then calculate the 9 values you would expect for Vout according to the 9 values you have calculated for R2. Include these R2 and corresponding Vout values in a table in your document. For Part 1document content, following the procedures in the Project Requirements document, include your calculations, results, and observations. The results of your calculations should be neatly inserted in a table in the document. Your observations should include at least your comments about the relationship between the component values and the value for Vout as well as the range of Vout relative to Vin. What is the value of R2 that leads to Vout=.5Vin, and why?

2 Part 2: Open LTspice and create the circuit shown in Figure 1. Refer to the.step Parameter sweeps section in the LTspice help file to understand the syntax for the spice example.step param RLOAD LIST provided. This can be inserted into the schematic by pressing the s key or selecting the.op command on the right of the toolbar at the top of LTspice. You can shorten this SPICE directive slightly by using RL for the variable name, and assigning the variable {RL} to the value for R2 (being sure to use the curly brackets). You will want to make sure the list contains the values you calculated for R2 in Part 1. Also assign the appropriate values to R1 and Vin in your schematic. When you run this simulation in LTspice using the DC operating point (DC op pnt) simulation command, you should get the result similar to that shown in Figure 2 when you plot V(Vout): Show the schematic and the resulting plot in the document you submit for this assignment. Also be sure to include your FirstnameLastnameProject1.asc file in your submitted files. Points will be deducted for schematics and plots that are not formatted in a way that makes them easily readable. Figure 2 LTspice result. For Part 2 document content, following the procedures in the Project Requirements document, copy the schematic and plot from the LTspice application Your observations should include at least a comparison of these results with Part 1 and your comments about any problems you had with LTspice and the use of the parameterized values for the resistor..

3 Part 3: Use the MATLAB code shown in Table 1. Table 1 Uncommented MATLAB code. %% this is one way of writing code to solve the Voltage Divider problem clear all; close all; ID = [ ]; IDplus = zeros(1,length(id)); R2 = zeros(1, length(id)); for k=1:length(id) IDplus(k) = ID(k)+1; if k==1 R2(k) = IDplus(k); else R2(k) = R2(k-1)+IDplus(k); Vs = R2(4); R1 = R2(5); Vout = zeros(1,length(k)); for k=1:length(id) Vout(k) = Vs*R2(k)/(R2(k)+R1); figure plot(r2, Vout, 'linewidth', 2), grid titlestr = ['Voltage Divider for Vs = ' int2str(vs) ' V, R1 = ' int2str(r1)]; title([titlestr ' \Omega, for loop'], 'fontsize', 14); xlabel('r2, \Omega', 'fontsize', 14); ylabel('vout, Volts', 'fontsize', 14); set(gca, 'fontsize', 12); disp([titlestr ' Ohms']); disp(' R2 Vout using "for loop"'); disp([r2' Vout']); %% This is another way of writing code to solve the Voltage Divider problem % This approach takes advantages of some of the powerful features of MATLAB. % Notice that no loops are necessary in this code. clear all ID = [ ]; IDplus = ID+1; R2 = cumsum(idplus); Vs = R2(4); R1 = R2(5); Vout = Vs*R2./(R2+R1); figure plot(r2, Vout, 'linewidth', 2), grid titlestr = ['Voltage Divider for Vs = ' int2str(vs) ' V, R1 = ' int2str(r1)]; title([titlestr ' \Omega, Matrices'], 'fontsize', 14); xlabel('r2, \Omega', 'fontsize', 14); ylabel('vout, Volts', 'fontsize', 14); set(gca, 'fontsize', 12); disp([titlestr ' Ohms']); disp(' R2 Vout using Matrices'); disp([r2' Vout']); Copy this code into a MATLAB editor window and save the editor file in your project directory as a FirstnameLastnameProject1.m file (this is also known as a script file). Replace the student ID in the example code in the MATLAB editor with your own student ID. Then make sure the code is properly indented for good readability. The indenting can be done by selecting the entire code page in the editor (Ctrl-a) and the auto indent (Ctrl-i) commands.

4 For every line in this code, add a comment to the right of the line describing exactly what the line does. You should use both the help capabilities of MATLAB and the single-step capabilities combined with the Command Window to make sure you understand and describe what is happening with each line. Your comment should begin with a % and the MATLAB editor should automatically make the comment font green. Your grade for this portion of the project is based largely on the completeness and accuracy of your comments. Copy your commented code into your document as described in the Part 3 description of the document content. This code should produce two plots that look something like the plots in Figure 3 and Figure 4 and an output to the Command Window that should look something like Table 1. 8 Voltage Divider for Vs = 10 V, R1 = 15 Ω, for loop Voltage Divider for Vs = 10 V, R1 = 15 Ω, Matrices Vout, Volts 5 4 Vout, Volts R2, Ω Figure 3 Plot result for the code using the for loops R2, Ω Figure 4 Plot result for the code using the MATLAB matrix approach Table 2 MATLAB results. Voltage Divider for Vs = 10 V, R1 = 15 Ohms R2 Vout using "for loop" Voltage Divider for Vs = 10 V, R1 = 15 Ohms R2 Vout using Matrices A note that may be helpful: You may find the MATLAB Function Browser to be useful, but the information it provides is generally not as complete as the information in the MATLAB Help window. You can also access the Help capabilities by typing doc function_name) in the Command Window.

5 For Part 3 document content, following the procedures in the Project Requirements document, copy your well-commented MATLAB code, the two MATLAB plots, and the results table produced in the Command Window to the document. Place your wellcommented code on separate landscape pages of the document, using margins and sufficiently small font as necessary to minimize the occurrence of line wrap and maintaining the colors from the editor window. Compare the MATLAB results with of the results of Part 1 and explain any differences. Your observations should include at least your comments about the difference in the two approaches used in the MATLAB code, what is being done in the second approach that avoids the need for using for loops, and the advantages of each approach. Also explain separately how the code is producing the plots (including the details of the title) and how the code is producing the output to the Command Window. Finally, discuss the benefits and drawbacks of the approaches used in all three parts of this assignment, describing situations where each method would be the preferred approach. Please submit by to the instructor the following prior to 10 AM on the due date: A document file containing the items listed above. An LTspice.asc file from your simulation. A MATLAB.m file containing your well-commented code.

Copy and paste your LTspice schematic, your MATLAB code, and resulting plots to the document you submit. Please do not use screen capture.

Copy and paste your LTspice schematic, your MATLAB code, and resulting plots to the document you submit. Please do not use screen capture. ECE1 Project Fall 11 First-order project This is a three-part project assignment. This assignment uses the same voltage source as was used in Project 5. The grading total for the 3 parts will be: Part

More information

DC Circuit Simulation

DC Circuit Simulation Chapter 2 DC Circuit Simulation 2.1 Starting the Project Manager 1. Select Project Manager from the Start All Program Cadence Release 16.5 Project Manager. 2. Select Allegro PCB Designer (Schematic) from

More information

SOUTHERN POLYTECHNIC S. U.

SOUTHERN POLYTECHNIC S. U. SOUTHERN POLYTECHNIC S. U. ECET 1012 Laboratory Exercise #4 ELECTRICAL & COMPUTER ENGINEERING TECHNOLOGY Introduction to PSpice Name Lab Section Date Overview: This laboratory experiment introduces the

More information

Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction

Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction Simulation is a mathematical way of emulating the behavior of a circuit. With simulation, you can determine

More information

The following is a procedure for extracting a layout, doing a layout vs. schematic check, and then simulating the extracted layout with Cadence.

The following is a procedure for extracting a layout, doing a layout vs. schematic check, and then simulating the extracted layout with Cadence. The following is a procedure for extracting a layout, doing a layout vs. schematic check, and then simulating the extracted layout with Cadence. (This might not be the best way, but it works!) 1) Realize

More information

LTSPICE MANUAL. For Teaching Module EE4415 ZHENG HAUN QUN. December 2016

LTSPICE MANUAL. For Teaching Module EE4415 ZHENG HAUN QUN. December 2016 LTSPICE MANUAL For Teaching Module EE4415 ZHENG HAUN QUN December 2016 DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINNERING NATIONAL UNIVERSITY OF SINGAPORE Contents 1. Introduction... 2 1.1 Installation...

More information

Class #15: Experiment Introduction to Matlab

Class #15: Experiment Introduction to Matlab Class #15: Experiment Introduction to Matlab Purpose: The objective of this experiment is to begin to use Matlab in our analysis of signals, circuits, etc. Background: Before doing this experiment, students

More information

PSpice Tutorial. Physics 160 Spring 2006

PSpice Tutorial. Physics 160 Spring 2006 PSpice Tutorial This is a tutorial designed to guide you through the simulation assignment included in the first homework set. You may either use the program as installed in the lab, or you may install

More information

Alfred Sargezi & Zain Ali. AMS Group - San Jose State University ams.sjsu.edu

Alfred Sargezi & Zain Ali. AMS Group - San Jose State University ams.sjsu.edu Cadence Inverter Transistor Sizing Tutorial Cadence Inverter Ocean Introduction Cadence Inverter Corners Tutorial Cadence Inverter VerilogA Tutorial Cadence Inverter Vout vs Vin Tutorial Alfred Sargezi

More information

Formatting & Style Examples

Formatting & Style Examples Formatting & Style Examples The code in the box on the right side is a program that shows an example of the desired formatting that is expected in this class. The boxes on the left side show variations

More information

Click on the SwCAD III shortcut created by the software installation.

Click on the SwCAD III shortcut created by the software installation. LTSpice Guide Click on the SwCAD III shortcut created by the software installation. Select File and New Schematic. Add a component Add a resistor Press R or click the resistor button to insert a resistor.

More information

Getting Started with Orcad Lite, Release 9.2

Getting Started with Orcad Lite, Release 9.2 Getting Started with Orcad Lite, Release 9.2 Professor Robert Hofinger Purdue University - Columbus You start a new project (program) by going to the File menu in the upper left corner, then New, and then

More information

What is Simulink. >>simulink

What is Simulink. >>simulink MATLAB Simulink What is Simulink Simulink is an input/output device GUI block diagram simulator. Simulink contains a Library Editor of tools from which we can build input/output devices and continuous

More information

Fall 2015 Math 337. Basic MatLab

Fall 2015 Math 337. Basic MatLab Fall 215 Math 337 Basic MatLab MatLab is a powerful software created by MathWorks, which is used extensively in mathematics, engineering, and the sciences. It has powerful numerical and graphic capabilities,

More information

Başkent University Department of Electrical and Electronics Engineering EEM 214 Electronics I Experiment 5

Başkent University Department of Electrical and Electronics Engineering EEM 214 Electronics I Experiment 5 Başkent University Department of Electrical and Electronics Engineering EEM 214 Electronics I Experiment 5 Zener Diode Characteristics & Zener Diode Voltage Regulator Aim: The aim of this experiment is

More information

Analog IC Simulation. Mentor Graphics 2006

Analog IC Simulation. Mentor Graphics 2006 Analog IC Simulation Mentor Graphics 2006 Santa Clara University Department of Electrical Engineering Date of Last Revision: March 29, 2007 Table of Contents 1. Objective... 3 2. Basic Test Circuit Creation...

More information

Getting started. Starting Capture. To start Capture. This chapter describes how to start OrCAD Capture.

Getting started. Starting Capture. To start Capture. This chapter describes how to start OrCAD Capture. Getting started 1 This chapter describes how to start OrCAD Capture. Starting Capture The OrCAD Release 9 installation process puts Capture in the \PROGRAM FILES\ORCAD\CAPTURE folder, and adds Pspice Student

More information

EE 1105 Pre-lab 3 MATLAB - the ins and outs

EE 1105 Pre-lab 3 MATLAB - the ins and outs EE 1105 Pre-lab 3 MATLAB - the ins and outs INTRODUCTION MATLAB is a software tool used by engineers for wide variety of day to day tasks. MATLAB is available for UTEP s students via My Desktop. To access

More information

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c.

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c. MATLAB BASICS Starting Matlab < PC: Desktop icon or Start menu item < UNIX: Enter matlab at operating system prompt < Others: Might need to execute from a menu somewhere Entering Matlab commands < Matlab

More information

CPE/EE 427, CPE 527, VLSI Design I: Tutorial #2, Schematic Capture, DC Analysis, Transient Analysis (Inverter, NAND2)

CPE/EE 427, CPE 527, VLSI Design I: Tutorial #2, Schematic Capture, DC Analysis, Transient Analysis (Inverter, NAND2) CPE/EE 427, CPE 527, VLSI Design I: Tutorial #2, Schematic Capture, DC Analysis, Transient Analysis (Inverter, NAND2) Joel Wilder, Aleksandar Milenkovic, ECE Dept., The University of Alabama in Huntsville

More information

Introduction to MATLAB Programming

Introduction to MATLAB Programming July 23, 2017 Appendix D Introduction to MATLAB Programming Contents D.1 Getting Started............................. 2 D.2 Basic m-file................................ 3 D.2.1 Printing..................................

More information

Using PSpice to Simulate Transmission Lines K. A. Connor Summer 2000 Fields and Waves I

Using PSpice to Simulate Transmission Lines K. A. Connor Summer 2000 Fields and Waves I Using PSpice to Simulate Transmission Lines K. A. Connor Summer 2000 Fields and Waves I We want to produce the image shown above as a screen capture or below as the schematic of this circuit. R1 V1 25

More information

Figure 1: PSpice symbol for a trim pot.

Figure 1: PSpice symbol for a trim pot. Prepared By: Joshua Wang and RW Hendricks Date: January 23, 2007 Revision: 1.0 (original release) Application: PSpice 9.2 and above A major use of the trim pot 1 is in applications where one needs to make

More information

Copyright 2008 Linear Technology. All rights reserved. Getting Started

Copyright 2008 Linear Technology. All rights reserved. Getting Started Copyright. All rights reserved. Getting Started Copyright. All rights reserved. Draft a Design Using the Schematic Editor 14 Start with a New Schematic New Schematic Left click on the New Schematic symbol

More information

Cadence Inverter Transistor Sizing Tutorial Cadence Inverter Ocean Introduction Cadence Inverter Corners Tutorial Cadence Inverter VerilogA Tutorial

Cadence Inverter Transistor Sizing Tutorial Cadence Inverter Ocean Introduction Cadence Inverter Corners Tutorial Cadence Inverter VerilogA Tutorial Cadence Inverter Transistor Sizing Tutorial Cadence Inverter Ocean Introduction Cadence Inverter Corners Tutorial Cadence Inverter VerilogA Tutorial Alfred Sargezi & Zain Ali AMS Group - San Jose State

More information

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3.

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3. MATLAB Introduction Accessing Matlab... Matlab Interface... The Basics... 2 Variable Definition and Statement Suppression... 2 Keyboard Shortcuts... More Common Functions... 4 Vectors and Matrices... 4

More information

ECEN 474 Homework #2 Notes

ECEN 474 Homework #2 Notes ECEN 474 Homework #2 Notes February 22, 2018 Due: 3-6-2018, 5:00PM Homeworks will not be received after due. Instructor: Sam Palermo 1. (50 points) Technology Characterization for Design In this problem,

More information

University of Illinois Department of Electrical and Computer Engineering ECE 451 Automated Microwave Measurements Laboratory

University of Illinois Department of Electrical and Computer Engineering ECE 451 Automated Microwave Measurements Laboratory University of Illinois Department of Electrical and Computer Engineering ECE 451 Automated Microwave Measurements Laboratory Experiment No. 4 Introduction to the Windows XP Workstation using National Instruments

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

EGR 111 Loops. This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times.

EGR 111 Loops. This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times. EGR 111 Loops This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times. New MATLAB commands: for, while,, length 1. The For Loop Suppose we want print a statement

More information

Fall 2014 MAT 375 Numerical Methods. Introduction to Programming using MATLAB

Fall 2014 MAT 375 Numerical Methods. Introduction to Programming using MATLAB Fall 2014 MAT 375 Numerical Methods Introduction to Programming using MATLAB Some useful links 1 The MOST useful link: www.google.com 2 MathWorks Webcite: www.mathworks.com/help/matlab/ 3 Wikibooks on

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB What you will learn The most important commands (from my view) Writing scripts (.m files) Defining MATLAB variables Matrix/array operations Importing and extracting data 2D plots

More information

LAB EXERCISE 3 Harmonic Balance Techniques

LAB EXERCISE 3 Harmonic Balance Techniques ADS 2012 Circuit Simulation Techniques (v.2 - April 2013) LAB EXERCISE 3 Harmonic Balance Techniques Topics: Harmonic Balance simulations are covered including swept variables, 2-tone simulations, equations

More information

AMS 27L LAB #2 Winter 2009

AMS 27L LAB #2 Winter 2009 AMS 27L LAB #2 Winter 2009 Plots and Matrix Algebra in MATLAB Objectives: 1. To practice basic display methods 2. To learn how to program loops 3. To learn how to write m-files 1 Vectors Matlab handles

More information

How To Plot Transconductance and Even More. By Ruida Yun

How To Plot Transconductance and Even More. By Ruida Yun How To Plot Transconductance and Even More By Ruida Yun g m /I d based methodology is preferred for short-channel length analog circuit design however there is no GUI support for this method in the current

More information

Attia, John Okyere. Control Statements. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999

Attia, John Okyere. Control Statements. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999 Attia, John Okyere. Control Statements. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999 1999 by CRC PRESS LLC CHAPTER THREE CONTROL STATEMENTS 3.1 FOR

More information

Cadence Schematic Tutorial. EEE5320/EEE4306 Fall 2015 University of Florida ECE

Cadence Schematic Tutorial. EEE5320/EEE4306 Fall 2015 University of Florida ECE Cadence Schematic Tutorial EEE5320/EEE4306 Fall 2015 University of Florida ECE 1 Remote access You may access the Linux server directly from the NEB Computer Lab using your GatorLink username and password.

More information

Matlab- Command Window Operations, Scalars and Arrays

Matlab- Command Window Operations, Scalars and Arrays 1 ME313 Homework #1 Matlab- Command Window Operations, Scalars and Arrays Last Updated August 17 2012. Assignment: Read and complete the suggested commands. After completing the exercise, copy the contents

More information

EGR 111 Loops. This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times.

EGR 111 Loops. This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times. EGR 111 Loops This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times. New MATLAB commands: for, while,, length 1. The For Loop Suppose we want print a statement

More information

ECSE-323 Digital System Design. Lab #1 Using the Altera Quartus II Software Fall 2008

ECSE-323 Digital System Design. Lab #1 Using the Altera Quartus II Software Fall 2008 1 ECSE-323 Digital System Design Lab #1 Using the Altera Quartus II Software Fall 2008 2 Introduction. In this lab you will learn the basics of the Altera Quartus II FPGA design software through following

More information

Simulation examples Chapter overview

Simulation examples Chapter overview Simulation examples 2 Chapter overview The examples in this chapter provide an introduction to the methods and tools for creating circuit designs, running simulations, and analyzing simulation results.

More information

Step by step set of instructions to accomplish a task or solve a problem

Step by step set of instructions to accomplish a task or solve a problem Step by step set of instructions to accomplish a task or solve a problem Algorithm to sum a list of numbers: Start a Sum at 0 For each number in the list: Add the current sum to the next number Make the

More information

AOE 5204: Homework Assignment 4 Due: Wednesday, 9/21 in class. Extended to Friday 9/23 Online Students:

AOE 5204: Homework Assignment 4 Due: Wednesday, 9/21 in class. Extended to Friday 9/23 Online Students: AOE 5204: Homework Assignment 4 Due: Wednesday, 9/21 in class. Extended to Friday 9/23 Online Students: Email (cdhall@vt.edu) by 5 PM Suppose F b is initially aligned with F i and at t = 0 begins to rotate

More information

EE 330 Spring 2018 Lab 1: Cadence Custom IC design tools Setup, Schematic capture and simulation

EE 330 Spring 2018 Lab 1: Cadence Custom IC design tools Setup, Schematic capture and simulation EE 330 Spring 2018 Lab 1: Cadence Custom IC design tools Setup, Schematic capture and simulation Table of Contents Objective... 2 1. Setup... 2 Set Bash Shell for the account... 2 2. Starting Cadence Custom

More information

EE 471: Transport Phenomena in Solid State Devices

EE 471: Transport Phenomena in Solid State Devices EE 471: Transport Phenomena in Solid State Devices HW7 Due: 4/17/18 For this homework, you will download a free PC version of the industry standard SPICE circuit simulator called LTspice, provided by Linear

More information

Introduction to MATLAB LAB 1

Introduction to MATLAB LAB 1 Introduction to MATLAB LAB 1 1 Basics of MATLAB MATrix LABoratory A super-powerful graphing calculator Matrix based numeric computation Embedded Functions Also a programming language User defined functions

More information

ECE 202 LAB 3 ADVANCED MATLAB

ECE 202 LAB 3 ADVANCED MATLAB Version 1.2 1 of 13 BEFORE YOU BEGIN PREREQUISITE LABS ECE 201 Labs EXPECTED KNOWLEDGE ECE 202 LAB 3 ADVANCED MATLAB Understanding of the Laplace transform and transfer functions EQUIPMENT Intel PC with

More information

Plotting using Matlab. Vytautas Astromskas

Plotting using Matlab. Vytautas Astromskas Plotting using Matlab Vytautas Astromskas Contents 1 Manipulating a plot using GUI 2 2 Manipulating a plot using command line 4 3 Adding multiple lines to the same plot 5 4 Logarithmic axes 6 5 Plotting

More information

Revision Notes: July2004 Generate tutorial for single transistor analysis. Based on existing schematic entry tutorial developed for ECE410

Revision Notes: July2004 Generate tutorial for single transistor analysis. Based on existing schematic entry tutorial developed for ECE410 Cadence Analog Tutorial 1: Schematic Entry and Transistor Characterization Created for the MSU VLSI program by Professor A. Mason and the AMSaC lab group. Revision Notes: July2004 Generate tutorial for

More information

Lab 1 Intro to MATLAB and FreeMat

Lab 1 Intro to MATLAB and FreeMat Lab 1 Intro to MATLAB and FreeMat Objectives concepts 1. Variables, vectors, and arrays 2. Plotting data 3. Script files skills 1. Use MATLAB to solve homework problems 2. Plot lab data and mathematical

More information

MATLAB - Lecture # 4

MATLAB - Lecture # 4 MATLAB - Lecture # 4 Script Files / Chapter 4 Topics Covered: 1. Script files. SCRIPT FILE 77-78! A script file is a sequence of MATLAB commands, called a program.! When a file runs, MATLAB executes the

More information

1. Working with PSpice:

1. Working with PSpice: Applied Electronics, Southwest Texas State University, 1, 13 1. Working with PSpice: PSpice is a circuit simulator. It uses the Kirchhoff s laws and the iv-relation of the used components to calculate

More information

ECS 189G: Intro to Computer Vision, Spring 2015 Problem Set 3

ECS 189G: Intro to Computer Vision, Spring 2015 Problem Set 3 ECS 189G: Intro to Computer Vision, Spring 2015 Problem Set 3 Instructor: Yong Jae Lee (yjlee@cs.ucdavis.edu) TA: Ahsan Abdullah (aabdullah@ucdavis.edu) TA: Vivek Dubey (vvkdubey@ucdavis.edu) Due: Wednesday,

More information

ENGR 1181 Autumn 2015 Final Exam Study Guide and Practice Problems

ENGR 1181 Autumn 2015 Final Exam Study Guide and Practice Problems ENGR 1181 Autumn 2015 Final Exam Study Guide and Practice Problems Disclaimer Problems seen in this study guide may resemble problems relating mainly to the pertinent homework assignments. Reading this

More information

Lab 1: Cadence Custom IC design tools- Setup, Schematic capture and simulation

Lab 1: Cadence Custom IC design tools- Setup, Schematic capture and simulation Lab 1: Cadence Custom IC design tools- Setup, Schematic capture and simulation Brittany Duffy EE 330- Integrated Electronics Lab Section B Professor Randy Geiger 1/24/13 Introduction The main goal of this

More information

ENGR 253 LAB #1 - MATLAB Introduction

ENGR 253 LAB #1 - MATLAB Introduction ENGR 253 LAB #1 - MATLAB Introduction Objective Understanding and hands on experience with MATLAB with focus on Signal Processing. Resources Signals & Systems textbook by Oppenheim and Willsky Windows

More information

Lab 4 CSE 7, Spring 2018 This lab is an introduction to using logical and comparison operators in Matlab.

Lab 4 CSE 7, Spring 2018 This lab is an introduction to using logical and comparison operators in Matlab. LEARNING OBJECTIVES: Lab 4 CSE 7, Spring 2018 This lab is an introduction to using logical and comparison operators in Matlab 1 Use comparison operators (< > = == ~=) between two scalar values to create

More information

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window.

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window. EE 350L: Signals and Transforms Lab Spring 2007 Lab #1 - Introduction to MATLAB Lab Handout Matlab Software: Matlab will be the analytical tool used in the signals lab. The laboratory has network licenses

More information

ECE383: Microcomputers Lab 2 PIC24 System Schematic Creation in PCB Artist

ECE383: Microcomputers Lab 2 PIC24 System Schematic Creation in PCB Artist ECE383: Microcomputers Lab 2 PIC24 System Schematic Creation in PCB Artist Goals: The goals of this lab are to introduce students to the creation of a partial PIC24-based schematic and printed circuit

More information

MATLAB TUTORIAL WORKSHEET

MATLAB TUTORIAL WORKSHEET MATLAB TUTORIAL WORKSHEET What is MATLAB? Software package used for computation High-level programming language with easy to use interactive environment Access MATLAB at Tufts here: https://it.tufts.edu/sw-matlabstudent

More information

COGS 119/219 MATLAB for Experimental Research. Fall 2016 Week 1 Built-in array functions, Data types.m files, begin Flow Control

COGS 119/219 MATLAB for Experimental Research. Fall 2016 Week 1 Built-in array functions, Data types.m files, begin Flow Control COGS 119/219 MATLAB for Experimental Research Fall 2016 Week 1 Built-in array functions, Data types.m files, begin Flow Control .m files We can write the MATLAB commands that we type at the command window

More information

GETTING STARTED WITH ADS

GETTING STARTED WITH ADS ADS Startup Tutorial v2 Page 1 of 17 GETTING STARTED WITH ADS Advanced Design System (ADS) from Agilent Technologies is an extremely powerful design tool for many aspects of electrical and computer engineering

More information

Decision Logic: if, if else, switch, Boolean conditions and variables

Decision Logic: if, if else, switch, Boolean conditions and variables CS 1044 roject 4 Summer I 2007 Decision Logic: if, if else, switch, Boolean conditions and variables This programming assignment uses many of the ideas presented in sections 3 through 5 of the course notes,

More information

Communication Skills Center

Communication Skills Center Communication Skills Center Working with APA Formatting in a Microsoft Word Document Note: These instructions are compatible to Microsoft Word 2010. Most of the instructions are the same if you use a later

More information

Experiment 0: Introduction to Cadence

Experiment 0: Introduction to Cadence UNIVERSITY OF CALIFORNIA AT BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences EE105 Lab Experiments Experiment 0: Introduction to Cadence Contents 1. Introduction...

More information

PSpice with Orcad 10

PSpice with Orcad 10 PSpice with Orcad 10 1. Creating Circuits Using PSpice Tutorial 2. AC Analysis 3. Step Response 4. Dependent Sources 5. Variable Phase VSin Source Page 1 of 29 Creating Circuits using PSpice Start Orcad

More information

The Newsletter will contain a Title for the newsletter, a regular border, columns, Page numbers, Header and Footer and two images.

The Newsletter will contain a Title for the newsletter, a regular border, columns, Page numbers, Header and Footer and two images. Creating the Newsletter Overview: You will be creating a cover page and a newsletter. The Cover page will include Your Name, Your Teacher's Name, the Title of the Newsletter, the Date, Period Number, an

More information

EE 330 Spring 2018 Laboratory 2: Basic Boolean Circuits

EE 330 Spring 2018 Laboratory 2: Basic Boolean Circuits EE 330 Spring 2018 Laboratory 2: Basic Boolean Circuits Contents Objective:... 2 Part 1: Introduction... 2 Part 2 Simulation of a CMOS Inverter... 3 Part 2.1 Attaching technology information... 3 Part

More information

This document describes how I implement the Newton method using Python and Fortran on the test function f(x) = (x 1) log 10 (x).

This document describes how I implement the Newton method using Python and Fortran on the test function f(x) = (x 1) log 10 (x). AMS 209 Foundations of Scientific Computing Homework 6 November 23, 2015 Cheng-Han Yu This document describes how I implement the Newton method using Python and Fortran on the test function f(x) = (x 1)

More information

This assignment requires that you complete the following tasks (in no particular order).

This assignment requires that you complete the following tasks (in no particular order). Construction Objectives The objectives of this assignment are: (1) Implement your FCS design with high-quality code and thorough unit tests (2) Gain experience doing a task breakdown (3) Gain experience

More information

EE 330 Fall 2017 Lab 1: Cadence Custom IC design tools - Setup, Schematic capture and simulation

EE 330 Fall 2017 Lab 1: Cadence Custom IC design tools - Setup, Schematic capture and simulation EE 330 Fall 2017 Lab 1: Cadence Custom IC design tools - Setup, Schematic capture and simulation Table of Contents Objective... 2 1. Setup... 2 Set Bash Shell for the account... 2 2. Starting Cadence Custom

More information

Initial Coding Guidelines

Initial Coding Guidelines Initial Coding Guidelines ITK 168 (Lim) This handout specifies coding guidelines for programs in ITK 168. You are expected to follow these guidelines precisely for all lecture programs, and for lab programs.

More information

EL2310 Scientific Programming

EL2310 Scientific Programming (pronobis@kth.se) Overview Overview Wrap Up More on Scripts and Functions Basic Programming Lecture 2 Lecture 3 Lecture 4 Wrap Up Last time Loading data from file: load( filename ) Graphical input and

More information

MATLAB GUIDE UMD PHYS375 FALL 2010

MATLAB GUIDE UMD PHYS375 FALL 2010 MATLAB GUIDE UMD PHYS375 FALL 200 DIRECTORIES Find the current directory you are in: >> pwd C:\Documents and Settings\ian\My Documents\MATLAB [Note that Matlab assigned this string of characters to a variable

More information

7 Control Structures, Logical Statements

7 Control Structures, Logical Statements 7 Control Structures, Logical Statements 7.1 Logical Statements 1. Logical (true or false) statements comparing scalars or matrices can be evaluated in MATLAB. Two matrices of the same size may be compared,

More information

MATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix.

MATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix. MATLAB Tutorial 1 1 Department of Mathematics and Statistics, The University of New Mexico, Albuquerque, NM 87131 August 28, 2016 Contents: 1. Scalars, Vectors, Matrices... 1 2. Built-in variables, functions,

More information

Parameter Sweep. Description. Setup. Parameters. Modified by on 13-Sep-2017

Parameter Sweep. Description. Setup. Parameters. Modified by on 13-Sep-2017 Parameter Sweep Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Description The Parameter Sweep feature allows you to sweep the value of a device in defined increments, over a specified

More information

Lecture 3 - Template and Vectors

Lecture 3 - Template and Vectors Lecture - Template and Vectors Homework Format and Template: We ll each develop a simple template to use to start any new homework. The idea of a template is to layout the basic structure of what goes

More information

ECE383: Microcomputers Lab 6 Basic and Finite State Machine LED and Switch I/O Programming

ECE383: Microcomputers Lab 6 Basic and Finite State Machine LED and Switch I/O Programming ECE383: Microcomputers Lab 6 Basic and Finite State Machine LED and Switch I/O Programming Goals: The goals of this lab are to continue to instruct students in a PIC24-based hardware system using PIO ports

More information

EOSC 352 MATLAB Review

EOSC 352 MATLAB Review EOSC 352 MATLAB Review To use MATLAB, you can either (1) type commands in the window (i.e., at the command line ) or (2) type in the name of a file you have made, whose name ends in.m and which contains

More information

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Homework 1

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Homework 1 18-290 Signals and Systems Profs. Byron Yu and Pulkit Grover Fall 2018 Homework 1 This homework is due in class on Thursday, September 6, 9:00am. Instructions Solve all non-matlab problems using only paper

More information

Cadence Tutorial A: Schematic Entry and Functional Simulation Created for the MSU VLSI program by Andrew Mason and the AMSaC lab group.

Cadence Tutorial A: Schematic Entry and Functional Simulation Created for the MSU VLSI program by Andrew Mason and the AMSaC lab group. Cadence Tutorial A: Schematic Entry and Functional Simulation Created for the MSU VLSI program by Andrew Mason and the AMSaC lab group. Revision Notes: Aug. 2003 update and edit A. Mason add intro/revision/contents

More information

MATH 2221A Mathematics Laboratory II

MATH 2221A Mathematics Laboratory II MATH A Mathematics Laboratory II Lab Assignment 4 Name: Student ID.: In this assignment, you are asked to run MATLAB demos to see MATLAB at work. The color version of this assignment can be found in your

More information

CpSc 1111 Lab 9 2-D Arrays

CpSc 1111 Lab 9 2-D Arrays CpSc 1111 Lab 9 2-D Arrays Overview This week, you will gain some experience with 2-dimensional arrays, using loops to do the following: initialize a 2-D array with data from an input file print out the

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB This note will introduce you to MATLAB for the purposes of this course. Most of the emphasis is on how to set up MATLAB on your computer. The purposes of this supplement are two.

More information

ECSE Introduction To Electronic Circuits. Midterm Examination Tuesday March 13, 2012, 1:05 PM - 2:25 PM

ECSE Introduction To Electronic Circuits. Midterm Examination Tuesday March 13, 2012, 1:05 PM - 2:25 PM ECSE 304-330 Introduction To Electronic Circuits Midterm Examination Tuesday March 13, 2012, 1:05 PM - 2:25 PM Examiner: Prof. G. Roberts Associate Examiner: none Name: Student No.: Instructions: Answer

More information

EE 301 Signals & Systems I MATLAB Tutorial with Questions

EE 301 Signals & Systems I MATLAB Tutorial with Questions EE 301 Signals & Systems I MATLAB Tutorial with Questions Under the content of the course EE-301, this semester, some MATLAB questions will be assigned in addition to the usual theoretical questions. This

More information

Lab 2: Functional Simulation Using. Affirma Analog Simulator

Lab 2: Functional Simulation Using. Affirma Analog Simulator Lab 2: Functional Simulation Using Affirma Analog Simulator This Lab will go over: 1. Creating a test bench 2. Simulation in Spectre Spice using the Analog Design environment 1. Creating a test bench:

More information

BEE 235 Continuous-Time Linear Systems

BEE 235 Continuous-Time Linear Systems BEE 235 Continuous-Time Linear Systems Lab 2 Functions in MATLAB and Playing Sounds This work was written by Amittai Axelrod, Jayson Bowen, and Maya Gupta, and is licensed under the Creative Commons Attribution

More information

The original document link is

The original document link is Tutorial:Analog Artist with HSPICE The original document link is http://www.eda.ncsu.edu/wiki/tutorial:analog_artist_with_hspice This tutorial will introduce you to the Cadence Environment: specifically

More information

The Mathematics of Big Data

The Mathematics of Big Data The Mathematics of Big Data Linear Algebra and MATLAB Philippe B. Laval KSU Fall 2015 Philippe B. Laval (KSU) Linear Algebra and MATLAB Fall 2015 1 / 23 Introduction We introduce the features of MATLAB

More information

George Mason University Signals and Systems I Spring 2016

George Mason University Signals and Systems I Spring 2016 George Mason University Signals and Systems I Spring 2016 Laboratory Project #1 Assigned: January 25, 2016 Due Date: Laboratory Section on Week of February 15, 2016 Description: The purpose of this laboratory

More information

ECE 331: Electronics Principles I Fall 2014

ECE 331: Electronics Principles I Fall 2014 ECE 331: Electronics Principles I Fall 2014 Lab #0: Introduction to Computer Modeling and Laboratory Measurements Report due at your registered lab period on the week of Sept. 8-12 Week 1 Accessing Linux

More information

A Tutorial on Matlab Ch. 3 Programming in Matlab

A Tutorial on Matlab Ch. 3 Programming in Matlab Department of Electrical Engineering University of Arkansas A Tutorial on Matlab Ch. 3 Programming in Matlab Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Plotting M-file Scripts Functions Control Flows Exercises

More information

CS 221 Lecture. Tuesday, 13 September 2011

CS 221 Lecture. Tuesday, 13 September 2011 CS 221 Lecture Tuesday, 13 September 2011 Today s Agenda 1. Announcements 2. Boolean Expressions and logic 3. MATLAB Fundamentals 1. Announcements First in-class quiz: Tuesday 4 October Lab quiz: Thursday

More information

Week 9: Design a Night Light. The experimental procedure Is not in the lab manual

Week 9: Design a Night Light. The experimental procedure Is not in the lab manual Week 9: Design a Night Light The experimental procedure Is not in the lab manual Goal Design a circuit that cause a green LED to turn on when the intensity of light on a CdS photocell is below a certain

More information

Lab 5: Circuit Simulation with PSPICE

Lab 5: Circuit Simulation with PSPICE Page 1 of 11 Laboratory Goals Introduce text-based PSPICE as a design tool Create transistor circuits using PSPICE Simulate output response for the designed circuits Introduce the Tektronics 571 Curve

More information

Pspice Tutorial for ELEN 3081 Written by Menachem Gielchinsky

Pspice Tutorial for ELEN 3081 Written by Menachem Gielchinsky Introduction Pspice Tutorial for ELEN 3081 Written by Menachem Gielchinsky Welcome to Pspice. Pspice is a program Electrical Engineers use to simulate circuits. In the past an older program known as Hspice

More information

CMSC 201 Fall 2016 Homework 6 Functions

CMSC 201 Fall 2016 Homework 6 Functions CMSC 201 Fall 2016 Homework 6 Functions Assignment: Homework 6 Functions Due Date: Wednesday, October 26th, 2016 by 8:59:59 PM Value: 40 points Collaboration: For Homework 6, collaboration is not allowed

More information

ET 438B Sequential Control and Data Acquisition Laboratory 2 Programming Advanced Control Structures in LabVIEW

ET 438B Sequential Control and Data Acquisition Laboratory 2 Programming Advanced Control Structures in LabVIEW Laboratory Learning Objectives ET 438B Sequential Control and Data Acquisition Laboratory 2 Programming Advanced Control Structures in LabVIEW 1. Use the Palettes of the LabVIEW programming environment

More information