Exp 1 - Introduction to SCI lab
Exp 1 - Introduction to SCI lab
Experiment No 01
Title of Experiment Introduction to SCI lab software
Name of the candidate
Register Number
Date of Experiment
Mark Split Up
Mathematical operation
Matrix operation
Commend 1 - Zeros(m,n) – creates m rows with n cols
Commend 2 - Eye(m,n) – creates identity matrix
Commend 3 - Ones(m,n) – creates matrix with all 1’s for all m rows and n cols
Commend 4 – Create 3 X 3 matrix
Commend 5 - Sin(z) – Retrieve the sine value for the given matrix / vector
Commend 6 - Exp(z) – Returns the exponential, element wise
Commend 7 - Sqrt(z) provides the square root for the matrix elements.
Polynomial operation
p = poly(r, 'x')
where r is a vector whose elements are specifying the roots of desired polynomial p,
and 'x' is the variable of the polynomial that we are specifying; poly(r, 'x') returns a row vector
whose elements are the coefficients of the polynomial of variable 'x'. For example,
-->r = [1 2 3];
-->p = poly(r, 'x'
Plot the Graph
Plot the single graph
plot(x, y)
xlabel('x = 0 : 2*pi')
-->ylabel('Sine of x')
-->title('Plot of the Sine function')
Transfer function:
-->s = poly(0, 's');
-->num = (s^2) + (2*s);
-->den = (2*s^2) + (2*s) + 1;
-->sys_tf = syslin('c', num, den)
Lab Tasks
Task 1: Matrix Operations
Task 2
Result: