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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by