Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 2007. Swap two numbers

Created by Deepesh B



 a = 10
 b = 20


 a = 20
 b = 10


Problem Group

Solution Statistics

94 correct solutions 33 incorrect solutions
Last solution submitted on Jul 19, 2016

Problem Comments

Solution Comments