CSE 432 Spring 2019 Lab 3

February 10, 2019

Task 1 Plotting a Sine Graph % Sine curve close all clear clc fs=20; %Sampling frequency in hz. Sampling time is 1/fs f=1; %frequency of sine wave is 30 hz phi=-pi/4; % initial phase w=2*pi*f; %Omega(angular velocity) a=2; %amplitude t=0:1/fs:2*pi; y=a*sin(w*t+phi); figure; plot(t,y); figure; stem(t,y); //Another way % Sine curve close all clear clc fs=1;

Continue Reading

CSE 432 Spring 2019 Lab 2

January 28, 2019

Task 1 String input output. Adding a variable in an array. %Task 1 clear; clc; var={}; n=input(‘Number of inputs: ‘); for i=1:n x=input(‘Enter String: ‘, ‘s’); var=[var x]; end for i=1:n fprintf(‘%s\n’, var{i}); end Task 2 Create a Matlab Script to find the cgpa of n subjects, where n will be taken as input. All

Continue Reading

CSE 322 Fall 2018 Lab 12

January 6, 2019

Simulation lab 2. Lab report has to be submitted. The list below shows the list of tasks and information to be submitted in the lab report. Task#1 Simulation of a 3-bit Flash ADC with a reference voltage of X Volt, where x is the last 2 digit of your registration number. Simulation of the circuit

Continue Reading

CSE 322 Fall 2018 Lab 11

January 6, 2019

Simulation lab starts. Lab report has to be submitted. The list below shows the list of tasks and information to be submitted in the lab report. Task#1 Installation of Proteus 8.0 Installation process of proteus 8.0 Task#2 Simulation of a 4-bit weighted resistor network DAC with a reference voltage of X Volt, where x is

Continue Reading

CSE 322 Fall 2018 Lab 10

December 3, 2018

Problem #1 (Chapter 10 Problem 9) Write a program that uses XLAT to (a) read a line of text, and (b) print It on the next line with all small letters converted to capitals. The Input line may contaln any characters-small letters, capital, letters, digit characters, punctuation, and so on. //Solution To be done by

Continue Reading

CSE 322 Fall 2018 Lab 9

December 1, 2018

Problem #1 (Example 10.3) String read and write //Solution .MODEL small .STACK 100h .DATA w dw 10,15,30,40,50,60,70,80,90,’$’ crlf db 0dh, 0ah, ‘$’ .CODE MAIN PROC mov ax, @data mov ds, ax mov ax, 0 lea si, w start: mov bx, [si] cmp bx, ‘$’ je end_ add ax, bx add si, 2 jmp start end_:

Continue Reading

CSE 446 Fall 2018 Lab 7

November 14, 2018

Tasks done Read a wave file in matlab and plot it in time domain and frequency domain Write a matlab script to draw a PWM [Pulse Width Modulation] waveform. Your code should take input the frequency and duty cycle of the wave. Your Lab report should include Read a wave file in matlab and plot

Continue Reading