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

# Latest Posts

## CSE 432 Spring 2019 Lab 1

Task 1 Installation of MATLAB Task 2 Basic matlab instructions a=4; b=5; c=a+b; %difference between usiong a semicolon at the end of an instruction and not disp(c); c=a-b; c=a*b; c=a/b; %Matrix and vector a=[0 1 2] a=[0 1 2; 3 4 5] a=[0 1 2; 3 4 5;6 7 8] b=[1 2 3; 4 5

## CSE 322 Fall 2018 Lab 12

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

## CSE 322 Fall 2018 Lab 11

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

## CSE 322 Fall 2018 Lab 10

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

## CSE 322 Fall 2018 Lab 9

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_:

## CSE 322 Fall 2018 Lab 8

Problem #1 (Program listing 11.1, 11.2, 11.3) String read and write //Solution .MODEL small .STACK 100h .DATA str db “Hello World$” str2 db 80 dup(0) crlf db 0dh, 0ah, ‘$’ .CODE MAIN PROC mov ax, @data mov ds, ax mov es, ax lea di, str2 call read_str lea dx, crlf mov ah, 9 int 21h

## CSE 446 Fall 2018 Lab 7

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

## CSE 446 Fall 2018 Lab 6

Tasks done Generating Walsh code Sample Output Give value of n: 8 Walsh code 1: 0 0 0 0 0 0 0 0 Walsh code 2: 0 1 0 1 0 1 0 1 Walsh code 3: 0 0 1 1 0 0 1 1 Walsh code 4: 0 1 1 0 0 1 1

## CSE 322 Fall 2018 Lab 7

Problem #1 (Program listing 9.2, 9.3, 9.4) Decimal input output procedure //Solution .MODEL small .STACK 256 .DATA .CODE MAIN PROC mov ax,@data mov ds,ax call indec push ax mov ah, 2 mov dl, 0dh int 21h mov dl, 0ah int 21h pop ax call outdec Exit: mov ah,4Ch int 21h MAIN ENDP outdec proc push