Subtraction of two numbers is the another easy program in the whole matlab. You have to just enter the numbers and put the minus signs in between the numbers A and B while declaring the variables C.

A=input(‘enter the first number ‘);

B=input(‘enter the second number ‘);

C=A-B

It’s simple. Just type the following and run the program. If any correction is needed let me know about it.