Visualized Sorting on App designer

3 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by