Problem 44436. Find the largest number

Created by Shaul Salomon in Community

Given a vector v with 4 elements, find the largest number x.


Input:  v = [4 7 1 6];
Output: x = 7;

You must NOT use MATLAB built in functions such as min(), max() or sort()

Solution Stats

29.53% Correct | 70.47% Incorrect
Last solution submitted on Jul 18, 2019

Solution Comments

Recent Solvers160

Suggested Problems

More from this Author25