Question: What will the value of the variable output be after executing the following code? function [ out ] = my _ io _ function (

What will the value of the variable output be after executing the following code?
function [out]= my_io_function (a,b)
out =0;
if a>5
out =a;
else
out =b;
output =a+b;
end
end
a=1;
b=11;
output = my_10_function (a,b);
A) Matlab throws an error with the message: Output argument "output" (and maybe others) not assigned during call to "my io function"
B)1
C)11
D)12
E)0
 What will the value of the variable output be after executing

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!