Visualized Sorting on App designer

1 view (last 30 days)
Ege Alp TURKYENER
Ege Alp TURKYENER on 10 Nov 2019
Edited: Ege Alp TURKYENER on 10 Nov 2019
I am trying to do make a bar graph from an array. And visualized it on bar graph while it is sorting. Firstly ı want to do that in insertion sort and then the other sorting methods.on appdesigner ı am stuck at visualizing
it should be something like this : https://www.youtube.com/watch?v=8oJS1BMKE64
methods (Access = private)
% Button pushed function: CreateArrayButton
function CreateArrayButtonPushed(app, event)
range_number = app.MaxRangeEditField.Value; %define range
run_numbers = app.NumberofElementsEditField.Value; %define number of elements
random_array = randperm(range_number,run_numbers); %create random array
bar(app.UIAxes,random_array);
end
end

Answers (0)

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!