How to solve subtraction between two real numbers

I want to know about Subtraction of two real numbers in Matlab

1 Comment

Know what about subtraction?
format long g
pi - 2
ans =
1.14159265358979

Sign in to comment.

Answers (1)

Pretty much what the comment says. You can subtract two numbers by doing the following:
a=100;
b=10;
res = a-b;
This is basically how you subtract two numbers in MATLAB.

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 16 Dec 2017

Answered:

on 16 Dec 2017

Community Treasure Hunt

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

Start Hunting!