Problem 564. How to subtract?

Created by AMITAVA BISWAS in Community

± ± ± ± ± ± ± ± ± ± ±

  • Imagine you need to subtract one number from another using MATLAB.
  • You will not be using eval for this task.
  • Given two ASCII strings representing two integers X and Y.
  • Each of them has only 12 or less ASCII characters.
  • Each of them represents signed integers, such as '+2345'
  • Please output the result of (X-Y) in a similar style.

Solution Stats

27.2% Correct | 72.8% Incorrect
Last solution submitted on Mar 17, 2019

Problem Comments

Solution Comments

Recent Solvers1247

Suggested Problems

More from this Author100


Discover MakerZone

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

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!