Universidad Autónoma de Nuevo León
Facultad de Ingeniería Mecánica y Eléctrica
Matlab Programming
Activity 2
Name: Matrícula: Career:
Cristian Manuel Monreal Guzmán 1794853 IMTC
Group: 014
Professor: MC Manuel Munguia Macario
C.d Universitaria, San Nicolás de los Garza, Nuevo León.
21/02/2021
Homework A
1. Find the magnitude of the vector A=(-1 7 3 2).
2. Find the magnitude of the vector A=(-1+i 7i 3 -2-2i)
3. Consider the numbers 1,2,3. Enter these as components of a column vector and
as components of a row vector.
Row Vector
Column Vector
4. Given A= [1;2;3]; B= [4;5;6];, find the array product of the two vector.
5. What command would creat a 5 x 5 matrix with ones on the diagonal and zeros
everywhere else?
The command we should use to create a identity matrix
6. Consider two matrices A and B and compute ther array product and matrix poduct
Array Product Matrix product
7. Suppose that A is use it to creat B
8. Find a solution to the following set of equations:
The determinant is:
9. Does a solution to the following system exist? What is it?
The system has a solution:
10. Use LU decomposition to find a solution to the system:
Homework B
Find 2 examples of problems using an equation system of 3 or more unknown and
use matlabsoftwareto solve it.
1. Find a solution for the system:
On this excersise i use the LU decomposition to find the solution of the system
because of the simplicity of the equation.
CONCLUSION
On this activity, i resolved problems using the topics that we studied on the previous
class. I learned to create vectors and matrix on MATLAB and how to find the
magnitud of some of them. I also learend how to create a matrix quickly with
commands and the different ways we can find the solution of systems