Question: Using MatLab: Given the following function, which statement is true? function [m,s] = stat(x) n = length(x); m = sum(x)/n; s = sqrt(sum((x-m).^2/n)); end Question
Using MatLab:
Given the following function, which statement is true?
function [m,s] = stat(x) n = length(x); m = sum(x)/n; s = sqrt(sum((x-m).^2/n)); end
Question 2 options:
| A: | This function requires two formal parameters |
| B: | n,m,s can be accessed outside of the function. For example, in the Command line |
| C: | the 'end' at the end of the function can be omitted |
| D: | This function has no return value |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
