Find the largest number x among 4 numbers given as variables a, b, c, and d.

Example:

Input:  a = 4; b = 7; c = 1; d = 6;
Output: x = 7;

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

Solution Stats

2383 Solutions

517 Solvers

Last Solution submitted on Aug 04, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers517

Suggested Problems

More from this Author25

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!