Practical2
Practical2
Enrollment no:-23115111
EE-5
Practical -1
Simulink.
Using Matlab
Using Simulink
(a) A 3x3 matrix with custom values. (c) A 3x3 matrix filled with zeros.
(b) A 3x3 matrix filled with ones. (d) A 3x3 identity matrix.
Ques 3: Write a MATLAB program that performs the following array
operations:
Code:-
Output:-
Ques 4. Write a MATLAB program that performs the following array
operations:
Code:-
output:-
transpose, and find its inverse. Display all results with long format
precision
• A = [2 4 6; 1 3 5; 7 8 9];
Ques.6 Write a MATLAB program to create a 4x4 matrix, extract the
second row and third
column separately, and display them using appropriate indexing
techniques.
Ques 7. Write a program to find the sum of the first N natural numbers.
The value of N should
if else command.
Ques 9. Write a MATLAB code using while loop to find the largest digit in a
number provided
by the user.
Ques 10. (a)Model a simple addition of two signals in Simulink.
a)
b)
c)