How to solve subtraction between two real numbers

2 ビュー (過去 30 日間)
Zakir Ullah
Zakir Ullah 2017 年 12 月 16 日
回答済み: Sammit Jain 2017 年 12 月 16 日
I want to know about Subtraction of two real numbers in Matlab
  1 件のコメント
John D'Errico
John D'Errico 2017 年 12 月 16 日
Know what about subtraction?
format long g
pi - 2
ans =
1.14159265358979

サインインしてコメントする。

回答 (1 件)

Sammit Jain
Sammit Jain 2017 年 12 月 16 日
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.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by