how can we compered every element in array with input element entered by user and retrieve the biggest number
2 次查看(过去 30 天)
显示 更早的评论
A little school building has 10 classrooms of various sizes. Each semester the school runs several classes that must be scheduled for the rooms in the building. Write a Matlab script that, given the capacity of each room in the building and the size of a class, will attempt to find satisfactory room assignment that will accommodate the class in the building. If the class cannot be satisfactory placed, the script should print a “Room is not available” message, otherwise, a message saying that “Room number XX which has YY seats, is best for the class of size ZZ”.
0 个评论
采纳的回答
Image Analyst
2016-12-3
This is essentially the same homework question as discussed here: http://www.mathworks.com/matlabcentral/answers/315165-i-got-a-task-from-my-group-studying-class-the-question-is-quite-confusing-and-i-m-new-to-matlab-he
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!