Date 17-Oct 26-Nov 10-Dec Base mark 10 10 10 Reg Name Test 1 Test 2 Test 3 160203020006 Naziza Islam Shaon 3.5 4 2 160203020015 Adib Shikder A A A 160303020001 Mohammad Shamimur Rahman 3 3 2 160303020002 Tayef Ahmed 1.5 3 1 160303020004 Hamiduzzaman Noyon 9 2 2 160303020005 Md. Musaddikur Rahman A 0

# Author: shparvez001

## CSE 432 Fall 2019 Lab 10

Task 1 Z-transform and Inverse Z-transform %Lab 10 Task 1 close all clear clc syms f f2 w n; f=sin(w*n); zTransformed=ztrans(f); pretty(zTransformed) pretty(iztrans(zTransformed)) f2=cos(w*n); zTransformed2=ztrans(f2); pretty(zTransformed2) pretty(iztrans(zTransformed2)) Task 2 Cross Correlation %Lab 10 Task 2 close all clear clc a=[2 -1 3 7 1 2 -3]; b=[1 -1 2 -2 4 1 -2 5]; c=xcorr(a,b);

## CSE 432 Fall 2019 Lab 9

Task #1 Create a 10 second time vector in MATLAB. Use fs (sampling rate) = 1000 Hz. Using the formula for a chirp from last lab create a chirp signal from this time vector. Use the initial starting frequency f0= 10 Hz and a modulation index, µ=1. Plot this signal in both the time and

## CSE 432 Fall 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

## CSE 432 Fall 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; figure fplot(‘x^2+5*x+6’,[-50 50]) figure ezpolar(‘cos(x)’) figure ezpolar(‘2+cos(x)’) figure ezpolar(‘sin(x)+cos(x)’) figure ezplot(‘cos(x)’) Task 2 Laplace Transform and Inverse Laplace Transform %Lab 7 Task 2 close all; clear; clc; syms t a s; y=exp(-a*t); pretty(laplace(y)) y1=exp(3*t); pretty(laplace(y1)) pretty(laplace(heaviside(t))) y2=exp(3*t)+exp(-5*t); pretty(laplace(y2))

## CSE 432 Fall 2019 Lab 6

Task 1 Symbolic Algebra in Matlab Solving Single Variable Equation Solving Multi Variable Equation Solving Simultaneous Equation Using roots and polyval function Using expand function to expand algebraic expression Using simplify function to simplify algebraic expression using factor function to factorize algebraic expression %Lab 6 Task 1 close all clear clc a=solve(‘3*x-50=0’); disp(a) b=solve(‘3*x^2+5*x-3=0’); pretty(b)

## CSE 432 Fall 2019 Lab 5

Task 1 Complex Numbers in matlab %Lab 5 Task 1 close all clear clc j=sqrt(-1); x=5+3j; y=6-2j; z=x+2*y; %Decomposing the real and imaginary part of a complex number disp(real(z)); disp(imag(z)); %Finding polar form of a complex number.\ disp(abs(z)); disp(angle(z)); Task 2 Real and Imaginary Components of complex numbers. %Lab 5 Task 2 close all clear

## Fall 2019 CSE 431 Tutorial 1 Solution

****The solution is a rough copy. There may be some errors.****

## CSE 121 Fall 2019 Tutorial 1 Solution

****The solution is a rough copy. There may be some errors.****