Question: Given that the function xxx is executed with the input y = [ 2 , 4 , - 1 , - 3 , 0 ]

Given that the function xxx is executed with the input y=[2,4,-1,-3,0] select the appropriate result of the function
Function [Z]=xxx(X)
N=numel(X);
For j=1:N
For i=1:N-1
If (abs(X(i))>abs(X(i+1)))
X([i i+1])=X([i+1 i]);
End
End
End
End

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!