Sorting using a while loop without sort command
2 次查看(过去 30 天)
显示 更早的评论
I need to make a funciton that given a vectoral input, outputs a vector of those elements sorted in ascending order. I dont know where to start with this.
2 个评论
Jan
2021-6-12
编辑:Jan
2021-6-12
Please post mire details: You do not know, how to start? Thenthe reader have to guess, that you have a computer, did install Matlab, read the Getting Started chapters and Matlab's Onramp already and know functions and while loops.
So did you start with this minimal code already?
function y = mysorting(x)
end
Remember, that the forum will not solve your homework. If you post a specific question, helping you to solve this is a supporting, niot a cheating. "don't know where to start" is not specific.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!