Course Solutions Uncategorized (Solved) : Matlab Want Plot Function 1 10000 X Values Function Y Values Call Function Use Y Values 1 Q30984960 . . . .

(Solved) : Matlab Want Plot Function 1 10000 X Values Function Y Values Call Function Use Y Values 1 Q30984960 . . . .

 

MATLAB:

I want to plot a function from 1:10000 as x values and aFUNCTION as y values, How do I call the function to use as y valuesfrom 1:10000 input?

Function:

function [N, mx] = collatz(x)

X = x;
N = 0;
mx = x;
while X ~= 1
if mod(X,2) % X is odd
X = 3*X+1;
else
X = X/2;
end
N = N+1;
if X > mx
mx = X;
end
end

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Problem 10 1 Specifications Part Dvd Player State Part Weigh 24 Standard Deviation 2 Ounce Q32479674(Answered) : Problem 10 1 Specifications Part Dvd Player State Part Weigh 24 Standard Deviation 2 Ounce Q32479674

<br/><img src="https://media.cheggcdn.com/media%2F9c6%2F9c6b4335-83d1-4ffa-a0c1-b8646c9cfa57%2Fimage.png" alt="Problem 10-1 Specifications for a part for a DVD player state that the part should weigh between 24 standard deviation of 2 ounce. The distribution of output is