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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!