Arithmetic Operations MATLAB Code includes addition, subtraction, multiplication and division of two numbers. Here is the code:

x=5;

y=7;

z=x+y;

s=x-y;

m=x.*y;

a=[x y z s m];

plot (a);

title(‘plot for addition, subtraction, multiplication of 2 numbers’);

gtext(‘x=5’);

gtext(‘y=7’);

gtext(‘x+y’);

gtext(‘y-x’);

gtext(‘x*y’)

xlabel(‘Numbers’);

ylabel(‘values’);

You can change the numbers according to yourself. Means the values of X and Y. However division is not included you can do so as I already gave the codes for division in my earlier posts.