Visualized Sorting on App designer
1 view (last 30 days)
Show older comments
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
0 Comments
Answers (0)
See Also
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!