Saturday, January 7, 2012

Arithmetic Operations MATLAB Program Code

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.

5 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Samsung has unveiled its new handset, the Galaxy S3 in Europe ahead of other
    markets. This phone feels just as solid in
    hand as any other phone you will hold this year.
    It will show you a list of Active Applications and you can press End to shut
    them down individually or press End All to close everything.


    My web page - galaxy s4

    ReplyDelete
  3. This will help you to alter the quantity of blur easily and allow camera make other
    critical decisions when you are shooting. Monty Alexander has written many articles on digital cameras - canon digital cameras, nikon digital
    cameras, Samsung digital camera etc. If your camera
    is not displayed as a drive letter when connected to your PC you may try with a digital camera card reader.



    Here is my web page nikon d7100

    ReplyDelete
  4. The maintenance free batter operated fan operates at two speeds and clips
    anywhere. If your gate changes at the airport, this app will alert you.

    The Sewing Kit found at RHL is a great buy found for under $5.


    My weblog :: nest thermostat

    ReplyDelete
  5. If you want to meditate with your Black -
    Berry using the resources already installed on the phone, there are a variety of ways you can do
    this:. If you little bit understand technologies, you can easily root your Black - Berry.

    Black - Berry Tablet OS is the new operating system that has been created for the Black - Berry Tablet and this operating system is based on
    QNX Neutrino.

    Also visit my blog; blackberry playbook

    ReplyDelete