Question: MATLAB question function function a (x) This will take the square root of 2 times every value of sqrt (2 x) function [x] function b
function function a (x) This will take the square root of 2 times every value of sqrt (2 x) function [x] function b (x) 8This determines the row and column dimensions of x rows, columns size (2x) i This sums all of the values of each row of x, resulting in a 8 column array of sums zeros 1) rows y for i 1 for j 1 columns y (i) y (i) x (i, j); end end function Ex] function c (x) This takes the transpose of x Using only a function header and calls to the three functions above, write a new function that takes one input, a matrix, and returns one output, a column array. Each element of the array should be the sum of all of the square roots of the numbers in the corresponding column of the original matrix multiplied by 2, as in sum(sqrt(number 2). For instance, if your matrix was: 2 4.5; 8 32. 40.5 50] Your function would return the array [15; 211
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
