######################################################################

Similar documents
1.5 The voltage V is given as V=RI, where R and I are resistance matrix and I current vector. Evaluate V given that

Unit 8 Combination Circuits

13 Searching for Pattern

Chapter 3: Resistive Network Analysis Instructor Notes

Electrical Circuits I (ENGR 2405) Chapter 2 Ohm s Law, KCL, KVL, Resistors in Series/Parallel

EXPERIMENT 9 Problem Solving: First-order Transient Circuits

Experiment #5 Series and Parallel Resistor Circuits

Solution: Based on the slope of q(t): 20 A for 0 t 1 s dt = 0 for 3 t 4 s. 20 A for 4 t 5 s 0 for t 5 s 20 C. t (s) 20 C. i (A) Fig. P1.

PART B. t (sec) Figure 1

Class #16: Experiment Matlab and Data Analysis

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

Part 1. Using LabVIEW to Measure Current

UNIVERSITY OF UTAH ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT

EE 462G Laboratory #1 Measuring Capacitance

PH213 Chapter 26 solutions

1. An engineer measures the (step response) rise time of an amplifier as. Estimate the 3-dB bandwidth of the amplifier. (2 points)

ITEC 2600 Introduction to Analytical Programming. Instructor: Prof. Z. Yang Office: DB3049

ECE317 Homework 7. where

Designing Information Devices and Systems II Spring 2019 A. Sahai, J. Roychowdhury, K. Pister Homework 2

EXPERIMENT 5 : DIODES AND RECTIFICATION

EE 435/535: Error Correcting Codes Project 1, Fall 2009: Extended Hamming Code. 1 Introduction. 2 Extended Hamming Code: Encoding. 1.

ECE 3410 Homework 4 (C) (B) (A) (F) (E) (D) (H) (I) Solution. Utah State University 1 D1 D2. D1 v OUT. v IN D1 D2 D1 (G)

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

Universal Dummy Cell 2. Operator's Manual

EXPERIMENT 5 : THE DIODE

Electronics EECE2412 Spring 2016 Exam #1

R V I P. i 1 = i 2 = I total. Kirchoff s Laws and Their Use for Circuit Analysis. Equations. Kirchoff s Laws. V=IR i

Integrators, differentiators, and simple filters

Scratch LED Rainbow Matrix. Teacher Guide. Product Code: EL Scratch LED Rainbow Matrix - Teacher Guide

Revision: April 18, E Main Suite D Pullman, WA (509) Voice and Fax

ELECTRONICS AND COMMUNICATION ENGINEERING

ECE411 - Laboratory Exercise #1

Fundamentals of Electric Circuits Chapter 2. Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Series and parallel resistances

MatLab for biologists

EXPERIMENT 5 : THE DIODE

AP Physics 1 Multiple Choice Questions - Chapter 12

Lab S-3: Beamforming with Phasors. N r k. is the time shift applied to r k

EE1305/EE1105 Homework Problems Packet

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 4 SINGLE STAGE AMPLIFIER

Chapter 26: Direct current circuit

Eight Queens Puzzle Solution Using MATLAB EE2013 Project

Automatic data analysis

The twenty-six pictures game.

EK 307 Lab: Light-Emitting Diodes. In-lab Assignment (Complete Level 1 and additionally level 2 if you choose to):

EXPERIMENT 5 : THE DIODE

EE 210: CIRCUITS AND DEVICES

Electrical & Computer Engineering Technology

電子電路. Memory and Advanced Digital Circuits

Matlab for CS6320 Beginners

Chapter 4: Patterns and Relationships

To apply proposed roadway data (vertical alignments, cross section template data, cut/fill slopes, etc.)

Digital Signal Processing

ENGR4300 Fall 2005 Test 4A. Name. Section. Question 1 (25 points) Question 2 (25 points) Question 3 (25 points) Question 4 (25 points)

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK UNIT I BASIC CIRCUITS ANALYSIS PART A (2-MARKS)

2.0 AC CIRCUITS 2.1 AC VOLTAGE AND CURRENT CALCULATIONS. ECE 4501 Power Systems Laboratory Manual Rev OBJECTIVE

Laboratory Project 1a: Power-Indicator LED's

Lab. 1: Simple Linear Circuit Analysis

EECS 216 Winter 2008 Lab 2: FM Detector Part I: Intro & Pre-lab Assignment

Series Circuits and Kirchoff s Voltage Law

ECE 3500: Fundamentals of Signals and Systems (Fall 2015) Lab 4: Binary Phase-Shift Keying Modulation and Demodulation

Lab 1: Basic RL and RC DC Circuits

Chemistry Hour Exam 1

Experiment #1: Solid State Diodes Testing & Characterization. Type Value Symbol Name Multisim Part Description Resistor 1MΩ R 2 Basic/Resistor ---

GOVERNMENT OF KARNATAKA KARNATAKA STATE PRE-UNIVERSITY EDUCATION EXAMINATION BOARD II YEAR PUC EXAMINATION MARCH-2013 SCHEME OF VALUATION

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

LAB 8: Activity P52: LRC Circuit

SIMULATION WITH THE CUK TOPOLOGY ECE562: Power Electronics I COLORADO STATE UNIVERSITY. Modified in Fall 2011

Lecture 16 Date: Frequency Response (Contd.)

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

Hamming Codes and Decoding Methods

EK 307 Lab: Light-Emitting Diodes

Study of Analog Phase-Locked Loop (APLL)

ENGR4300 Test 3A Fall 2002

Expansion/Analysis of a Card Trick Comprised of Transformations in 2-Dimensional Matrices Aaron Kazam Sherbany, Clarkstown North High School, NY

An electronic unit that behaves like a voltagecontrolled

Lab 1: Basic Lab Equipment and Measurements

Power Electronics Laboratory-2 Uncontrolled Rectifiers

Source Transformations

Each question is worth 2 points, except for problem 3, where each question is worth 5 points.

EE 2274 DIODE OR GATE & CLIPPING CIRCUIT

Modelling and Simulation of a DC Motor Drive

Fall Music 320A Homework #2 Sinusoids, Complex Sinusoids 145 points Theory and Lab Problems Due Thursday 10/11/2018 before class

Electrical Engineering Fundamentals

SCRIPT. Voltage Dividers

Voltage Current and Resistance II

Experiment 2 Electric Circuit Fundamentals

ECE 2006 University of Minnesota Duluth Lab 11. AC Circuits

Laboratory Project 1B: Electromyogram Circuit

Unit 4: Principles of Electrical and Electronic Engineering. LO1: Understand fundamental electrical principles Maximum power transfer

INTRODUCTION TO AC FILTERS AND RESONANCE

VALLIAMMAI ENGINEERING COLLEGE

SIMULATION OF A SERIES RESONANT CIRCUIT ECE562: Power Electronics I COLORADO STATE UNIVERSITY. Modified in Fall 2011

Lab 10 - INTRODUCTION TO AC FILTERS AND RESONANCE

GCE AS. WJEC Eduqas GCE AS in ELECTRONICS ACCREDITED BY OFQUAL DESIGNATED BY QUALIFICATIONS WALES SAMPLE ASSESSMENT MATERIALS

Basic Signals and Systems

EXPERIMENT 6 REPORT Bipolar Junction Transistor (BJT) Characteristics

Laboratory Project 4: Frequency Response and Filters

Physics 1051 Laboratory #4 DC Circuits and Ohm s Law. DC Circuits and Ohm s Law

Revised: Summer 2010

Transcription:

Write a MATLAB program which asks the user to enter three numbers. - The program should figure out the median value and the average value and print these out. Do not use the predefined MATLAB functions to compute the average and median values. Also the program should change the sign of the smaller of them and then add them. Write a MATLAB program which will ask the user for a number. - If the number is positive it should print out the message the number is positive. If the number is negative it should print out the square of that number. Also - If the number is equal to two times a predefined number the program should print out a welcome message. Otherwise it should print out a message saying you are not authorized. Write a MATLAB program which will ask the user for a name and then for a password. The program should compare this name and this password against a predefined name and password. If both match it should print out a welcome message. If the name matches only say your password do not match If the password matches only say your name do not match If neither matches it should say I do not know you. Write a MATLAB program which will ask the user for a single Standard English number (1, 5, 10, 50, 100, 500 or 1000). The program should then print out its Roman numeral equivalent (I, V, X, L, C, D or M). Standard English 1 5 10 50 100 500 1000 Roman numeral equivalent I V X L C D M

Write a MATLAB program which will ask the user for two numbers K and L. Using the for loop find the sum of the squares of all numbers between K and L, that is l j= k j 2 Repeat the pervious program using the while loop. Let s build a compound interest calculator given the initial value X and the annual interest rate R and the maximum numbers of years N use a for loop to calculate and print out the accumulated amount for each year. The following sequence is called a Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 after the first two elements each element of the sequence is the sum of the previous two elements. Write a MATLAB program which given the first two elements, will generate and printout the next a elements of the Fibonacci sequence where a is a number supplied by the user. Write a MATLAB program which will prompt the user for a predetermined word if the word is not correct it will ask again, and will keep asking until the user enters the correct word. The program should print out the number of tries used to guess the word. Write a MATLAB program which will ask the user to setup a new password. The password should be at least six characters long. If the password entered by the user is less than six characters long the program should issue a request to try again.

Given the following matrices 9 1 4 7 A = 2 5, B 5 =, C = 7 8 3 6 3 1 [ ] i. Extract the second, third and fourth elements of the B vector and store them in a new vector (say D) ii. Create a new row vector (say E) from vector B and the number 3 such that E = [ 3 9 7 5 3 1] iii. Create a new matrix (say F) from matrix A, vector C and the number 9 such that F 1 2 3 = 4 5 6 7 8 9 Use MATLAB to create a 3 3 identity matrix (A), then Use MATLAB to create a 5 5 matrix (B) whose elements are generated by a uniformly distributed pseudo-random number generator, then use MATLAB to create a new matrix (C) whose elements are the last two columns of the matrix (B) (remove the first three columns of the matrix (B)), then Use MATLAB to create 3 3 diagonal matrix (D) whose diagonal elements are 3, 7, 13. Use the MATLAB for loop to create the following matrices:

For the following matrix: R 1 2 3 = 4 5 6 7 8 9 i. Extract the third column of the matrix R ii. Extract the last two elements of the matrix R iii. Convert the R matrix into a long column vector whose elements are the columns of the matrix R stacked one by one under each other. iv. Flip the R matrix up, i.e. preserve the columns and flip the rows up. v. Extract the lower triangular part of the matrix R. vi. Extract the upper triangular part of the matrix R. In figure shown, write A MATLAB program for solving V 3 at w=10 rad/s, if R1=20Ω, R2=100Ω, R3=50 Ω, and L1= 4H, L2=8H and C1=250 µf. The voltage V across a resistance is given as (ohm's law), V=Ri, where i is the current and R the resistance. The power dissipated in resistor R is given by the expression P=i 2 R. If R=10ohm and the current is increased from zero to 10A with increments of 2A, write a MATLAB PROGRAM to generate a table of current, voltage and power dissipation.

For R-L circuit, the voltage v(t) and current i(t) are given as V(t)=10 cos(377t) and i(t)=5 cos(377t-60 o ), Write a MATLAB script file to sketch v(t) and i(t) for t=0 To 20msec. (use the commands title, label, and color). The voltage V and current I of a certain diode are related by the expression:- I = I S exp[v/(nv T )], If I S =1.0*10-14 A, n=20 and V T =26mv, write a MATLAB file to plot the current versus voltage curve of the diode for diode voltage between 0v and 6v. (Use the commands title, x-label, y-label). The table below shows the final course grade and its relevant letter grads. For the course grades: - 70, 85, 90, 97, 50, 60, 71, 83, 91, 86, 77, 45, 67, 88, 64, 79, 75, 92 and 69. Write a MATLAB PROGRAM to determine the number of students who attained the grade of A, D and F. Letter Grade Final Course Grade A 90 < Grade 100 B 80 < Grade 90 C 70 < Grade 80 D 60 < Grade 70 F Grade 60 Write a MATLAB FUNCTION FILE to solve the equivalent resistance of parallel connected resistors, R 1, R 2, R 3,..., R N. Use this function file program to calculate the equivalent resistance of parallel connected resistors 10, 20, 15, 16 and 15 ohms.