How is Problem 1 (a through e) typed up in Matlab? I would like to know how the commands is typed up along with solution please.

a)
code:
A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
B(2,:)

b)
code:
A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
sum(B(2,:))

c)
code
A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
B(:,2).*A(:,1)

d)
code
A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
max(B(:,2).*A(:,1))

How is Problem 1 (a through e) typed up in Matlab? I would like to know...
2. Matrix A = Matrix B = log(A) Write MATLAB expressions to do the following. Evaluate the sum of the first row of B Evaluate the maximum value in the vector resulting from element-by-element multiplication of the first column of B with the third column of A. Use element-by-element division to divide the third row of A by the first three elements of the second column of B and evaluate the sum of the elements of the resulting vector.
write it in matlab language
Question No 4 6 Marks The surface area and volume of the shown ring-shaped mechanical part are calculated respectively as follows: A =rd (2k +d) V = *d? (2R +d) Write a user defined function that computes surface area (A) and volume (V) of this ring from the arguments d and R. Suppose that is constrained to be 15 in, greater than d. Write a script file that uses your function to plot A and...
Need help with this MatLab exercise. Please show all commands in
MatLab.
Enter the following matrices and vectors in MATLAB [ 2 -6 3 ] [ 5 ] -3 A= 2 -7 -2 , B= 2 -2 -3 , b= -13 , c= 3 -1 4], d= 0 [ 7 -2 7 [1 -8 -1 ] [ 10 (a) Perform the following operations: AB, BA, CA and Bd (use standard linear algebra multiplication). - 3 (b) Construct a 6 x...
Problem 5 Create the following matrix by typing elements explicitly one command. Do not type individual 0 00 0 0 o o 0 0 0 0 0 1 2 3 F=0 01 10 20 0 0 2 8 26 0 0 3 6 32 E 0 045 6 0 0 7 8 9 Problem 6 Create two row vectors: a -4 10 0.5 1.8 -2.3 7, b [0.7 9 -53-0.6 12 (a) Use the two vectors in a MATLAB command...
using matlab
Create the following matrix B. [18 17 16 15 14 13] 12 11 10 9 8 7 6 5 4 3 2 1 Use the matrix B to: (a) Create a six-element column vector named va that contains the elements of the second and fifth columns of B. (6) Create a seven-element column vector named vb that contains elements 3 through 6 of the third row of B and the elements of the second column of B. Create...
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 you put semicolon ω at the end of each line. For this part your program should perform following tasks 1. Create a Matrix A. Show the contents of matrix A to command window with the title Matrix A:". The Matrix A should be defined as...
Create a script that receives any row matrix with positive integer elements as the input (suppose you have at least two elements in your matrix), and creates the output as a row matrix with only two elements, where the first element will be sum of all the oddly placed element of the input, and the second value will represent the sum of all the evenly placed elements of the input: Example: A = [11 , 4 , 42 , 31...
MATLAB QUESTIONS [1pts] Create the following vectors (prob01a, b): A = 10 thru 1 B = 1 thru 4.2 with ten equally spaced elements [3pts] Perform the following operations on the vectors A and B element by element (prob02a, b, c) multiply B and A divide B by A AB + BA [3pts] Create a matrix E, using A and B vectors as row 1 and row 2 respectively (prob03a, b, c) find the size of E find the length...
Compute the following problems using Math
Lab.
Instructions: Answer All Questions using MATLAB commands. Question 1. Create a vector of the even whole numbers between 31 and 75. Question 2. Let x [2516] a. Add 16 to each element b. Add 3 to just the odd-index elcments c. Compute the square root of each element d. Compute the square of each element Question 3. Let x 13 268T and y [4 1 3 5] (NB. x and y should be...
Problem 1 Write your code in the file MatrixOps.java. . Consider the following definitions from matrix algebra: A vector is a one-dimensional set of numbers, such as [42 9 20]. The dot product of two equal-length vectors A and B is computed by multiplying the first entry of A by the first entry of B, the second entry of A by the second entry of B, etc., and then summing these products. For example, the dot product of [42 9...