CODE:
x=input('Enter the elements of the array');
E=[];
O=[];
for i=1:length(x)
if(rem(x(i),2)==0)
E=[E x(i)];
else
O=[O x(i)];
end
end
OS=fliplr(sort(O));
ES=sort(E);
z=[OS,ES]
Sorting of array in MATLAB:
• fliplr and sort function in matlab
On this page of the site you can watch the video online Interview Program based on sorting in MATLAB with a duration of hours minute second in good quality, which was uploaded by the user Knowledge Amplifier 13 May 2019, share the link with friends and acquaintances, this video has already been watched 51 times on youtube and it was liked by 0 viewers. Enjoy your viewing!