My professor wants us to create a function to find the max value in an array x (max=maxvalue(x)). He said we are not allowed to use the built-in max command. But what else is there?
The max function is just an implementation of an algorithm that compares the values in the vector to find the one with the highest value. You assignment, therefore, is to implement your own algorithm. I'd perhaps start with
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.