How to subtract ith position of one array from the ith position of another

Hi, everyone,
In my program, I subract one array from another. It should be like X(i) - Y(i)
Can someone explain to me how I can make sure that I'm subracting ith value of array 2 from the ith value of array one?  Not , for example, X(i)- Y(i+1)?
Thank you
Solved!
Go to Solution.

Hopefully, you are not doing anything more complicated than this:
This does X(i) - Y(i).
Message Edited by Dennis Knutson on 12-21-2009 10:59 AM
Attachments:
Subtract.PNG ‏2 KB

Similar Messages

  • How can I select more than one song from the search results?

    I want to create playlists based on certain words in the song title. For example, I may want to create a playlist of all my songs with LOVE in the title.
    Doing the search is easy, but I can't select more than one song at a time. Is there any way in iTunes 12 for Windows to do this? I found an answer in iTunes for Mac, and it basically says to "un-check "Search Entire Library." " but I don't see that option in iTunes for Windows.
    Here is the link to that question: how can i select more than one song from drop down search bar
    I hope some Windows user can help me out.

    Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
    I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway.

  • How do I manage more than one Ipod from the same computer?

    I just bought my boyfriend an Ipod and I want to set it up for him before I give it to him. We only have one computer and I'm not sure what to do. Can we both work from one itunes or can I install it twice?

    Just plug it in.
    You do not need to install iTunes twice.
    See this -> How to use multiple iPods on one computer

  • How to call BSP page in one frame from a webdynpro page in another frame?

    Dear experts,
    I have a scenario as follows:
    A BSP application which contains 5 frames. in the first frame I am calling a web Dynpro application. This is a tree and it is displayed correctly. on click of an item (node item) in the tree, a bsp page should be displayed in the second frame. I am not able to display this in the second frame. When I call the BSP page, it is getting displayed in the same frame (i.e, the first frame).
    Kindly help me out.
    Thanks & Warm Regards,
    Jenny

    From WDA you can't force the navigation of a different frame. Nor should you really be building an application with WDA running within a frame.  You will have session management problems. 
    SAP recommendation is to use the NetWeaver Portal. You could then place the WDA and BSP applications into separate iViews.  They can communicate with each other using Portal Eventing.

  • How To Make Printer Only Use One Color From the Cartridge?

    Several weeks ago I had accidetnally found the settings, and now can not for the life of me find it. I want to make the default settings of the printer to only print in blue, so It only uses blue from the ink and will only print blue stuff. Its a multi colored image, and only want it to print the blue. its not just text i can change to blue.  Any ideas, I checked the printer properties and preferences, cant find it. I have a MG3120 and windows 8

    Hello. Please try the following steps to adjust the color settings: 1. Close all programs that are open.2. Click Start and open the Control Panel.3. Open Printers or Devices and Printers.4. Right-click the MG3100 and choose Printing Preferences.5. In the Main tab, change the Color/Intensity to Manual.  Then click Set. Once there, you can adjust the color settings as desired. This didn't answer your question or issue or need additional assistance? Find more help at Contact Us.  

  • How do you change a multi page document from the default black to another colour?

    I have a multi page calendar chart that is black text and lines in InDesign. I need to print it as green on a copier not press. Is there a way to change the black to green without having to go through each text box and line separately?

    I hope you are using paragraph styles. Change the color there and it will change everywhere you have used this style. If you have set up your styles correctly you need to change one styles and alll others will chage too.
    Never use a character in InDesign without a Paragraph Style.

  • How do you attach/email more than one document from the pages app?

    How do you send more than one document from the pages app on an iPad?

    This is entirely frustrating and I have yet to find an answer for this question even though people have been asking it on the internet for over a year!
    I am relatively new to apple and I was considering staying with them for my next iphone because of my apps, but after paying for this app and discovering I can't email more than one document "page" at a time? This makes no sense. Please fix this apple, I'd like to say you have replaced my tablet PC for home-office work but now I am reconsidering...

  • How do i get my podcasts to go from the one i just finished to the next one and how do i sort them from oldest to newest?

    how do i get my podcasts to go from the one i just finished to the next one withouth me having to click on it, and how do i sort them from oldest to newest?

    Not sure if you tried this, but did you hold down both the sleep and home button for 10 seconds? 

  • HT204053 how do i change my icloud email address from the one i already have input?

    how do i change my icloud email address from the one i already have input?

    Hi sparkie,
    You cannot change your iCloud email address. It is an @me.com address, and is associated specifically with that iCloud account. If you want a different @me address assigned, you have to delete the current iCloud account and set up a new one.
    Here is a link with all the support information for iCloud:
    http://www.apple.com/support/icloud/
    Hope this helps!
    Cheers,
    GB

  • How do I view more than one image at the same time in CS6?

    How do I view more than one image at the same time in CS6?

    Hi there
    If you go to Window > Arrange you can choose from several view options. Below I have selected Two-Up Horizontal since I have two images, but you can select other options if you have more than one image.

  • It wants to verify my account and won't take the password, how can I create a new one or verify the existing one?

    I cloud wants to verify my account and won't take the password, how can I create a new one or verify the one it won't take?

    If you can't remember the password, reset it at...
    iForgot.com

  • I forgot my password for my apple ID. Any ideas on how to put in a new one without knowing the old one?

    I forgot my password for my Apple ID. Anyone have a solution on how to put in a new one without knowing the old one?
    Thanks

    Welcome to Apple Support Communities
    You have to reset your password. You can do this in this site > http://iforgot.apple.com

  • Code for how to read an integer array from the command prompt...

    hello,
    Could anyone give me the code for how to read an integer array from the command prompt...its very urgent!..

    If you are using a recent version of Java (5 or later) you can use Scanner:
    http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
    That page has some example code on it, too.

  • I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?

    I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?

    Hi Don,
    DON RICE wrote:
    I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?
    Which password are you referring to in your statement? You can download flash player using this Link - https://get2.adobe.com/flashplayer/
    Regards,
    Rahul

  • When I import some of my cd's they have multiple album images but have just one song from the cd because of a guest performer. How do I keep the cd from "blowing up" like this? eergh

    When I import some of my cd's they have multiple album images but have just one song from the cd because of a guest performer. How do I keep the cd from "blowing up" like this? eergh

    for purchases from the iTunes store do this:
    connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    for everything else check out this post by Zevoneer.

Maybe you are looking for

  • Repetitive manufacturing:subcontracting

    Dear experts               In repetitive manufacturing scenario, I have subcontracted my 4 of operations.            Now the requirement is I want to create Automatic PR for those operations.           So please guide me what are the necessary settin

  • Attachment

    I am using weblogic 7.0 webservice. Servicegen to generate webservice. I have a where i want to attach text file or jpeg in soap message. For the same i write a handler. Now i assume that if i want to add a attachment i have to go via handlers method

  • Java.lang.UnsatisfiedLinkError: no muxer in java.library.path

    error while starting weblogic plz help me

  • I can`t sign in to my icloud,what i do?

    i can`t sign in to my icloud,what i do?

  • Fitting into the Text boxes

    HI I am trying to fill out an application on Adobe Reader and some of the spaces are a bit short and do not allow me to competely answer the questions.  Is there a way to either reduce font ot create 2 lines within the text box to allow for more spac