A = [22 0; 12 4]
B = [14 4; -3 9]
%matrix A
fprintf("Matrix ")
A
%matrix B
fprintf("Matrix ")
B
%matrix A's row1
fprintf("Row 1 in matrix A:")
A(1,:)
%matrix B's column2
fprintf("Column 2 in matrix B:")
B(:,2)
%addition
fprintf("Adding matrix A and B:")
A+B
%vector multiplication
fprintf("Vector multiplication of A and B: ")
A.*B
%Matrix multiplication
fprintf("Matrix multiplication of A and B: ")
A*B
fprintf("Matrix multiplication of B and A: ")
B*A
a=min(A(:,1))
b=min(A(:,2))
c=max(B(:,1))
d=max(B(:,2))
%new matrix
fprintf("Matrix from minimum of A and maximum of B")
newM=[c d; a b]
second picture is output of the mathlab code Important Note: For testing of this part of the assignment, the automatic printing of values in the com mand window must not be used. Please make sure...
cope the code please thanks Write a MATLAB code to obtain the following. Keep your code commented whenever required. Copy your source code and command widow outcomes and screen shots of any plots in your solution. Generate a matrix "A" as follow. A= 16 6 8 2 10 18 12 14 4 I. II. Divide the matrix A by 2 and store the result in a matrix B. Combine matrices A & B to obtain the following matrix C. Also...
I need help modifying this program. How would I make sure that the methods is being called and checked in my main method? Here is what the program needs to run as: GDVEGTA GVCEKST The LCS has length 4 The LCS is GVET This is the error that I'm getting: The LCS has length 4 // I got this right The LCS is //the backtrace is not being called for some reason c++ code: the cpp class: /** * calculate...
the picture above is the one you are supposed to use for the MATlab code please help Problems. Grayscale images are composed of a 2D matrix of light intensities from O (Black) to 255 (White). In this lab you will be using grayscale images and do 2D-array operations along with loops and iflelse branches. 1. We can regard 2D grayscale images as 2D arrays. Now load the provided image of scientists at the Solvay Conference in 1927 using the imread)...