Question: function [x] = function_a(x) %This will take the squareroot of 2 times every value of x x = squareroot (2*x): function [x] = function_b(x) %This
![function [x] = function_a(x) %This will take the squareroot of 2](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f31ab37edfc_11466f31ab2ddf86.jpg)
function [x] = function_a(x) %This will take the squareroot of 2 times every value of x x = squareroot (2*x): function [x] = function_b(x) %This determines the row and column dimensions of x [rows, columns] = size (x): %This sums all of the values of each row of x, resulting in a % column array of sums y = zeros (rows, 1): for j = 1: rows for j = 1: columns y(i) = y(i) + x(i, j): end end x = y: function [x] = function_c (x) %This takes the transpose of x x = 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 single number. That number should be the sum of the squareroot of every number in the original matrix multiplied by 2, as in sum( squareroot (number * 2)). For example, if your original matrix was: [2 2: 2 2] Your function would return the number 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
