This video shows the implementation of the Selection Sort algorithm using MATLAB Function.
Complete source code available at:
https://programmerworld.co/matlab/sel...
We will be glad to hear from you regarding any query, suggestions or appreciations at: programmerworld1990@gmail.com
[Source Code]
function y = SelectionSort(x)
n = length(x);
for i=1:n
min_index = i;
for j=i+1:n
if x(min_index) greater_than x(j)
min_index=j;
end
end
%Swap
if(min_index~=i)
temp = x(min_index);
x(min_index) = x(i);
x(i) = temp;
end
end
y=x;
end
On this page of the site you can watch the video online Selection Sort algorithm solved using MATLAB Function with a duration of hours minute second in good quality, which was uploaded by the user Programmer World 17 May 2018, share the link with friends and acquaintances, this video has already been watched 5,987 times on youtube and it was liked by 47 viewers. Enjoy your viewing!