I need to find the max value of an Array without using builtin functions
2 次查看(过去 30 天)
显示 更早的评论
Write out by hand a MATLAB script for finding the maximum value within an array, A. Assume the array is given and you can calculate the size of the array using the MATLAB command size. You cannot use any other MATLAB built-in functions, including max.
I don't even know how to start this process. Not asking for the assignment to be done for me. Just some tips or hints. Thanks
3 个评论
Star Strider
2015-2-12
It’s been a very long while since I wrote in assembler, but if I remember correctly, even machine code has relational and conditional operators. Barring all of them at any level makes this assignment absolutely impossible.
回答(1 个)
Star Strider
2015-2-12
Relational operators such as < or <= and others might be useful. Since you’re allowed to use size, read the documentation on for and if as well.
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!