Cody

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.58% Correct | 72.42% Incorrect
Last solution submitted on Oct 21, 2018

Problem Comments

Solution Comments

Recent Solvers1197

Tags

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!