162LabLec1

# 162LabLec1 - clear clc g=g g(1,1)= g,3 = g(1:3,2)=...

This preview shows pages 1–4. Sign up to view the full content.

clear clc g=g’ g(1,1)=_ g(:,3) = _ g(1:3,2)=_ g(1:3,3)=[] g(3) = [] ----- cut f = 2*ones(3,2) g*f (check dimention) g.*f 0:pi:100 ---- start, increment, end Linspace(0,20,60) --- start, end, #points A= linspace() Zeros(6,9) A= Rand(_,_) B= find(a>0.8) Length (b) For i = 1:10; B=b+I; For I =1:5 [t,x] = ode45(‘deriv’, [0 100],[i+18]); Hold on

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Plot(t,x) end Help ____
2/8 162 Lab Lec Sys=ss(A,B,C,D) Trans=tf(sys) Transfer function from input to output… #1: Trans(1,1) %call the first row, first column Trans_zpk = zpk(trans) Zero/pole/grain from input to output…

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 03/12/2011 for the course IEOR 162 taught by Professor Chu during the Spring '11 term at UC Merced.

### Page1 / 4

162LabLec1 - clear clc g=g g(1,1)= g,3 = g(1:3,2)=...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online