First we have to enter the two matrices. Let 'a' be the first matrix and 'b' be the second matrix. The matrices are typed in the following command
a=[1 7 -2 3;5 -1 9 13;2 51 31 4;6 18 -4 2]
and then press enter
output is
a =
1 7 -2 3
5 -1 9 13
2 51 31 4
6 18 -4 2
b=[10 5 91;7 -54 21;-15 2 9;8 -2 31]
press enter
output is
b =
10 5 91
7 -54 21
-15 2 9
8 -2 31
The matrix operation is
a*b
press enter then we get the answer
ans =
113 -383 313
12 71 918
-56 -2690 1656
262 -954 950
Use MATLAB OR SCILAB TO PERFORM THE FOLLOWING MATRIX OPERATION Use MATLAB or Scilab to perform...
USE MATLAB 3. Use MATLAB or Scilab to implement cubic spline, and plot the points and the curve for the following data sets. x-[018 12 27) and y=[12345) Input: (copy and paste the MATLAB or Sclla command in the following box) Output: (copy and paste the output in the following box)
i got it incomplete sorry I put this by mistake. can this be canceled? 4. Use MATLAB or Scilab to implement linear regression, and plot the points and the curve for the following data sets. x [018 12 27) and y [12345 Input: (copy and paste the MATLAB or Sclab commandin the folowing bax) cic X1-101 8 12 271: Y1-11 234 5] Y-transpose(Y1) for n-1:5 X(n,2)-X1(n) end format long ycalc-S(2) X+S(1); scatter(X1,Y1) hold on plot(X,ycalc) xlabel(X) ylabel(Y) title('Linear Regression Relation...
Please answer using MATHLAB. I need the code and the answer. Thanks, Use MATLAB or Scilab to perform the following matrix operations 1) Find the determinant of ſi 7 -2 31 5 -1 9 13 2 51 31 4 6 18 -4 21 2) Find the inverse (A-2) of ſi 7 -2 3] 5 -1 9 13 2 51 314 6 18 -4 2' 3) Given the following set of linear equations X, + 2 x, – x3 + xy...
must be done in MATLAB 2. Create a main program that calls the subroutine created on problem 1 and compare results using the following data sets: b. (1 5), (0, 8), (3, -10) С. (-10,-2). ( 4,5), (7, 3), (12, 20) Output: (copy and paste the output in the following box) Use MATLAB or Scilab to solve the following problems 1. Create a MATLAB subroutine called Lagrange.m that receives two set data points, x and y and plots the curve...
specify Output, please. 6. Create a MATLAB script to integrate the given function using the numerical scheme called Trapezoid's Rule. a. f(x)- xe* +3x1+2x-1 and find for with h 0.1, 0.01 and 0.001 Input: (copy and paste the MATLAB or Scilab command in the following box)
USING MATLAB/SCILAB: Given the following set of linear equations, solve using LU DECOMPOSITION x1 + 2x2 - x3 + x4 = 5 -x1 - 2x2 - 3x3 + 2x4 = 7 2x1 + x2 - x3 - 5x4 = -1 x1 + x2 + x3 + x4 = 10 Please show me pictures of the matlab/scilab compiler or copy-paste code and output
2. Create a main program that calls the subroutine created on problem 1 and compare results using the following data sets: b. 1 5), (0, 8), (3,-10) С. (-10,-2), (45), (73), (12, 20) t: (copy and paste the output in the following box) Use MATLAB or Scilab to solve the following problems 1. Create a MATLAB subroutine called Lagrange.m that receives two set data points, x and y and plots the curve by interpolating the missing points (hEX-Xi-1) using Lagrange...
1) Explain the IDFT function in Matlab 2) Re-write a SCILAB script that performs the IDFT. 3) Test your program using the following input xk (6-1-40-1)); 4) Plot x 5) Compare the output of Matlab with the output of SCILAB
1. (20pts) Write the MATLAB program to find the multiplication of [B][A] MATLAB's matrix operation capabilities.. .you must code the individual steps. [4 51 =. Do not use 3 71 4 1 2,and [B] = 1 2 6 [A] = 0 4 15 2 6. 1. (20pts) Write the MATLAB program to find the multiplication of [B][A] MATLAB's matrix operation capabilities.. .you must code the individual steps. [4 51 =. Do not use 3 71 4 1 2,and [B] =...
in put and output done in computer please Use MATLAB or Scilab to solve the following problems 1. Create a MATLAB subroutine called Lagrange.m that receives two set data points, x and y and plots the curve by interpolating the missing points (h=x-X.1) using Lagrange interpolation form.