Problem 564. How to subtract?

Created by AMITAVA BISWAS in Cody5:Easy

± ± ± ± ± ± ± ± ± ± ±

  • 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 Dec 12, 2018

Problem Comments

Solution Comments

Recent Solvers1215


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!