CSE 432 Spring 2019 Lab 10

Task: Pole Zero, Roots, Poly, ZPKdata and PZ map of System clc; close all; clear all; num=[10 20 30]; den=[40 50 60]; sys=tf(num,den); poles=pole(sys) zeros=zero(sys) poles_using_roots=roots(den) zeros_using_roots=roots(num) den_using_poly=poly(poles) num_using_poly=poly(zeros) [z,p,k]=zpkdata(sys,’v’) pzmap(sys) Pole zero plot after laplace transform %Laplace Transform close all; clear; clc; syms t s; ft=5*t^2+ 3*t+9; fs=laplace(ft); pretty(fs); fw=fourier(ft); pretty(fw); ffs=simplify(fs); pretty(ffs) [n,d]

Continue Reading

CSE 432 Spring 2019 Lab 8

Task #1 Importing audio into MATLAB Audio can be imported into MATLAB using audioread()or wavread()functions. The example below shows importing a sound and plotting it. clear close all clc [y, Fs, nbits]=wavread(‘Tuning fork 1’); sample=length(y); totaltime=sample/Fs; t=1:sample; t=t/Fs; y_fft = abs(fft(y));           y_fft = y_fft(1:sample/2);     f = Fs*(0:sample/2-1)/sample; figure plot(t,y) figure plot(f, y_fft)   Task #2

Continue Reading

CSE 432 Spring 2019 Lab 7

Task 1 More symbolic algebra %Lab 7 task 1 close all clear clc syms x y; y=x^2 + 5*x + 6; fplot(‘x^3 + 5*x^2+9*x + 6’, [-50 50]) figure ezplot(‘1+cos(x)’) figure ezpolar(‘x^3 + 5*x^2+9*x + 6’) figure ezpolar(‘1+cos(x)’) Task 2 Laplace transform and Inverse Laplace transform in Matlab %Lab 7 task 2 : Laplace and

Continue Reading

Chemistry Lecture 5 update

There has been some mistakes in the original lecture sheet for lecture 5 of CHE 101. The examples and exercise are intended to be from Chemistry 10th edition by raymond change instead of general chemistry book by the same writer. The updated lecture sheet has been updated. Kindly check the updated lecture sheet and do

Continue Reading