Question: Interactive07.m has already been provided to generate two random integers with values between 0 and 25 that are assigned to the variables X and Y.

 Interactive07.m has already been provided to generate two random integers with
values between 0 and 25 that are assigned to the variables X

Interactive07.m has already been provided to generate two random integers with values between 0 and 25 that are assigned to the variables X and Y. Add a local function (called XYSUM), for Interactive07.m to take X and Y, and returns the following two string variables: . The first string should be assigned to the variable Xandy and should present the values of the two numbers by filling in the blank in "The value of x is ..., and the value of Y is ...." . The second string should be assigned to the variable Xplusy and should present the sum of the two numbers by filling in the blank in "The sum of X and Y is .... For example, if x = 4 and Y = 3, then the string assigned to Xandy should be: "The value of X is 4, and the value of Y is 3." And the string assigned to Xplusy would be: "The sum of X and Y is 7." Interactive07 (1) - Notepad File Edit Format View Help clear all; X = randi([1 25]); Y = randi([1 25]); [Xandy, XplusY]=XYSUM(X, Y); strcat(Xandy, Xplusy)

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!