Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I do this problem of arrays?
1 次查看(过去 30 天)
显示 更早的评论
Greetings! I need to do this problem, but the problem is that I dont have idea how to do it without commands mentioned below.
Write a function that receives an array of any size and maximum and minimum return of all numbers in the matrix. Schedule your function using loops, DO NOT use the predefined functions allowed Matlab: min, max, sort, sortRows.
Please help me! I am a premier! This is not my concentration and It's very difficult for me. Thanks a lot!
0 个评论
回答(1 个)
Walter Roberson
2016-10-16
You can get the outline of the code from http://www.mathworks.com/matlabcentral/answers/307479-how-to-use-if-statement-to-pick-up-3-to-4-values-from-the-data-that-nearest-to-the-mean#answer_239173 which is code that finds the 4 smallest values of something.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!