Top Banner
Program to plot curve for euation :- y=sin(x)+cos(x)
23

MATLAB PRINTOUT FULL.pdf

Oct 25, 2015

Download

Documents

olekar

matlab programs
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MATLAB PRINTOUT FULL.pdf

Program to plot curve for euation :- y=sin(x)+cos(x)

Page 2: MATLAB PRINTOUT FULL.pdf

For age – height relation of a group of people, compute mean, standard deviation and variance

Page 3: MATLAB PRINTOUT FULL.pdf

Generate ASK signal

Page 4: MATLAB PRINTOUT FULL.pdf

Generate FSK signal

Page 5: MATLAB PRINTOUT FULL.pdf

Generate the following signals (assume f) and plot their frequency spectrum using DFT commands.

a) Square function b) Sine function c) Ramp function

Page 6: MATLAB PRINTOUT FULL.pdf

IMAGE PROCESSING

Page 7: MATLAB PRINTOUT FULL.pdf

Find the impulse response of a LTI system for given difference equationy(n) - y(n-1) + 0.9y(n+2) = x(n)

Page 8: MATLAB PRINTOUT FULL.pdf

Matrix method to solve for currents based on KCL in an electrical circuit having minimum of 3 loops

Page 9: MATLAB PRINTOUT FULL.pdf

Program to verify the given logic equation and generate truth table for this function

Page 10: MATLAB PRINTOUT FULL.pdf

Program to perform the addition, subtraction, multiplication & division of two matrices

Page 11: MATLAB PRINTOUT FULL.pdf

For a given binary data generate the NRZ patterns

Page 12: MATLAB PRINTOUT FULL.pdf

Program to create a function handle for a nested function to plot PARABOLA.

Page 13: MATLAB PRINTOUT FULL.pdf

Plot the curve for function : y=x3+2x2-5, where x varies from -10 to 10

Page 14: MATLAB PRINTOUT FULL.pdf

% Program to evaluate quadtratic equation:

clc; clear all; close all; a=input('Enter the value of a='); b=input('enter the value of b='); c=input('enter the value of c='); x(1)=(-b+sqrt(b*b-4*a*c))/(2*a); x(2)=(-b-sqrt(b*b-4*a*c))/(2*a); disp('The roots of quadratic equations are'); disp('x(1)='); disp(x(1)); disp('x(2)='); disp(x(2));

Result: Enter the value of a=4 Enter the value of b=6 Enter the value of c=2 The roots of quadratic equations are x(1)= -0.5000 x(2)= -1

Page 15: MATLAB PRINTOUT FULL.pdf

For a given binary data generate RZ patterns

Page 16: MATLAB PRINTOUT FULL.pdf

Verification of sampling theorem:

Page 17: MATLAB PRINTOUT FULL.pdf

Current flowing through a semiconductor diode is given by:id = io [exp(qvd/kT)-1]

Page 18: MATLAB PRINTOUT FULL.pdf

The current through series resonant circuit

Page 19: MATLAB PRINTOUT FULL.pdf

Find the transpose of a matrix

Page 20: MATLAB PRINTOUT FULL.pdf

%Program to calculate the trigonometric quantities: clc; clear all; close all; deg=input('Enter the value of theta in degree='); rad=deg*pi/180; cal_1=sin(rad/6); disp('The value of sin(deg/6) is ='); disp(cal_1); cal_2=cos(rad); disp('The value of cos(deg) is ='); disp(cal_2); cal_3=tan(rad/2); disp('The value of tan(deg/2) is ='); disp(cal_3); cal_4=[(sin(rad/6))^2+(cos(rad/6))^2]; disp('The value of (sin(rad/6))^2=(cos(rad/6))^2 is ='); disp(cal_4);

Result: Enter the value of theta in degree=60 The value of sin(deg/6) is = 0.1736 The value of cos(deg) is = 0.5000 The value of tan(deg/2) is = 0.5774 The value of (sin(rad/6))^2=(cos(rad/6))^2 is = 1.0000

Page 21: MATLAB PRINTOUT FULL.pdf

Generate two sinusoids & compute their product. plot them in time & frequency domain (Fourier transform)

Page 22: MATLAB PRINTOUT FULL.pdf
Page 23: MATLAB PRINTOUT FULL.pdf