dnjkasd

dnjkasd




Introduction:
Matlab is a powerful tool that is utilized by the engineers and others professionals in development and testing of various projects. It is versatile software, with the help of which you can solve and develop any sort of engineering problem. The name MATLAB stands for MATRIX LABORAORY. All the work done in Matlab is basically in the form of matrices. Scalars are referred as 1-to-1 matrix and vectors are matrices having more than 1 row and column. Matlab is programmable and have the same logical, relational, conditional and loop structures as in other programming languages, such as C, Java etc. It’s very easy to use Matlab, all we need is to practice it and become a friend of it.
Objective
To understand the use of Matlab for solving communication engineering problems.
Learn the basics of Matlab as used in Analogue Communication.
To develop understanding of Matlab environment, commands and syntax.

Measurements:
Scalars
Code:
A = 2; B = 3; C = A^B C = A*B
C = A+B ans = 5
C = A-B ans =-1
C = A/B ans= 0.6667
C = A\B ans=1.5000
a 25 ( 31/3 ) + 2 (2+92 ) = 202.0562
b 5x3 + 3x2 + 5x + 14 for x = 3 is 191
c Solve this quadratic equation using quadratic formula.
a = 2.5, b = 5, c = -6
a=2.5;
b=5;
c=-6;
x= ((b^2) - (4*a*c))
x1= sqrt(x)
x2= (-1*b) + x1
x3 = (-1*b) - x1
x2= (x2/(2*a))
x3= (x3/(2*a))

x=__0.8439_ and _-2.8439_
Vectors
X = [1 2 3 4]
Y = [2 5 8 9]
length (X) = 4
size (X) = 1 4
What is the difference between these two?
SIZE(X), for M-by-N matrix X, returns the two-element row vector
D = [M,N] containing the number of rows and columns in the matrix.
Length returns the total number of element
Question 2
A= [ones(1,3), [2:2:10], zeros(1,3)]
What is the length and size of this?
Length = 11
Size = 1 11
Question 3:
MATRICES
. Try to solve these.
1. 6x + 12y + 4z = 70
7x – 2y + 3z= 5
2x + 8y -9z = 64
A = [6 12 4;7 -2 3;2 8...