Question: Plus x : A first function Assign y with 5 plus x . Ex: If x is 2 , then y is 7 . If

Plus x : A first function
Assign y with 5 plus x.
Ex: If x is 2, then y is 7. If x is 19, then y is 24.
Note: Some challenge activities require completing a function (as above), or writing a new function. You can create test calls to the function in the "Code to call your function" window, then press "Run". Try appending this call to that window: IncreaseValue(9)
When done writing and testing your function, press "Submit for Assessment", which will automatically apply various test calls to your function.
Function ?
Save
C Reset
mATLAB Documentation
function y= Increasevalue (x)
%x : User defined value that is added to 5
% Modify the line below to y=5+x
y=x
end
 Plus x : A first function Assign y with 5 plus

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!