To make one larger array using other two arrays

Hi,
I have two one dimensional arrays, using these two arrays as index need to create another larger one dimensional array.
like : if two one dimensional arrays namely X and Y, then X and Y should go as index for the final array.
Please help.
Thank you

kathyayini wrote:
I have two one dimensional arrays, using these two arrays as index need to create another larger one dimensional array.
like : if two one dimensional arrays namely X and Y, then X and Y should go as index for the final array.
Please help.I second jverd, but you might want to look at Arrays.copy() and System.arrayCopy().
Winston

Similar Messages

  • How do i output multiple arrays from a case structure to create one larger array

    I currently have a vi that has one hardware input that i needed to take a measurement then be moved and take a similar measurement at a different point.  To accomplish this i used a while loop inside a case structure.  The while loop takes the measurement  and finds the numbers i need while the case structure is changed per the new measurement location.  I want to take the data points i have created in each case and output them into a single table.  I assumed to do this the best way would be to get the data from each case into its own built array and build a larger array but I cant get the information out of the case structure so that it all inputs at different places.
    thanks for your help
    Attachments:
    Array.vi ‏30 KB

    Hi Ross,
    attached you will find a solution for your table building problem.
    I would suggest thinking about program design - having the same case content in several cases doesn't make sense. I also would not want my user to press several stop buttons depending on choosen measurement...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Array.vi ‏45 KB

  • Mashing small clips together to make one large one!?

    i figured ou thow to do this once, but now i cant remember.
    i need to mesh a bunch of small clips together to make a large one so i can do a longer transition.

    .. if You had some short clips and applyed a text on them.
    And the text just using some spaces (no letters) then it would merge the
    clips together...
    never tried (.. never needed.. ), but a clever one!!
    here's for you:

  • HT1920 I have two accounts with iTunes, I would like to make one account out of the two?

    I have two accounts with iTunes, I would like to make one out of the two?

    Welcome to the Apple Community.
    You can't.
    You can't merge accounts or transfer content.

  • Copying Multiple Arrays into One Large Array

    I'm currently trying to copy multiple character arrays into one larger character array in a method that prints data gathered from a database. Here is my code:
    private static void printData(String[] data){
            try {
                int totalLengthOfAllStrings = 0;
                for(int i = 0; i < data.length; i++) {
                    data[i] += '\n';
                    totalLengthOfAllStrings += data.length();
    int runningLength = 0;
    char[] printArray = new char[totalLengthOfAllStrings];
    for(int j = 0; j < data.length; j++) {
    char[] tempArray = data[j].toCharArray();
    runningLength += tempArray.length;
    System.arraycopy(tempArray, 0, printArray, runningLength - 1, tempArray.length);
    DocFlavor df = DocFlavor.CHAR_ARRAY.TEXT_PLAIN;
    Doc printDoc = new SimpleDoc(printArray, df, null);
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(new Copies(1));
    aset.add(MediaSize.NA.LETTER);
    aset.add(Sides.DUPLEX);
    PrintService[] services = PrintServiceLookup.lookupPrintServices(df, aset);
    if (services.length > 0) {
    DocPrintJob job = services[0].createPrintJob();
    try {
    job.print(printDoc, aset);
    System.out.println("Print successful!");
    catch (PrintException pe) {
    catch(Exception e) {
    e.printStackTrace();
    I keep getting an ArrayIndexOutOfBoundsException and for the life of me I can't figure out why.
    Can anyone help with this?
    Thanks!
    -Matt

    I think your problem lies with the second for loop:
    for(int j = 0; j < data.length; j++)  {
        char[] tempArray = data[j].toCharArray();
        runningLength += tempArray.length;
        System.arraycopy(tempArray, 0, printArray, runningLength - 1, tempArray.length);
    }If I am not wrong, you should swap the sequence of the runningLength and System.arraycopy statements, and also move the minus 1 from arraycopy statement to the runningLength statement. The result would look like this:
    for(int j = 0; j < data.length; j++)  {
        char[] tempArray = data[j].toCharArray();
        System.arraycopy(tempArray, 0, printArray, runningLength, tempArray.length);    // swapped and removed the -1
        runningLength += tempArray.length - 1;    // swapped and appended the -1
    }The main reason for these changes is because when j == data.length - 1, the value of runningLength would have already exceeded the size of printArray. Therefore, swapping the position would be able to overcome this problem.

  • I have a MBP 15" with iPhoto 9. When right clicking on icon in dock 3 iPhoto libraries come up; one empty, one with 35,000 photos and one with 30,000 photos.  How can I delete the empty one and merge the other two without getting duplicates?

    I have a MBP 15" with Iphoto 9.  When I right click on icon in dock 3 iPhoto libraries come up; one empty, one with 35,000 photos and one with 30,000 photos.  How can I delete the empty library and merge the other two without getting duplicates?

    You can delete the empty one by dragging it to the trash ( test everything before emptying the trash)
    Merging libraries requires iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  it is the only current solution to merging libraries
    LN

  • Unable to register one extract,but the other twos are ok.

    Enviroment:
    OS:Windows Server 2003 64bit
    GG:
    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.2.1.0.6 16211226 OGGCORE_11.2.1.0.6_PLATFORMS_130418.1829
    Windows x64 (optimized), Oracle 11g on Apr 19 2013 17:38:40
    There are three extract on the same server.Now I'd like to register for the three extracts.The other twos are ok,but there is a one extract,meet the below error message:
    2013-12-22 21:43:50  ERROR   OGG-01755  Cannot register or unregister EXTRACT E_
    ZF_K because of the following SQL error: OCI Error ORA-00001: unique constraint
    (SYSTEM.LOGMNR_SESSION_UK1) violated
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM_INTERNAL", line 453
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM", line 289
    ORA-06512: at line 1 (status = 1). See Extract user privileges in the Oracle Gol
    denGate for Oracle Installation and Setup Guide.
    What should I do?And I also want to know the detailed cause of this error.Thanks in acvance!

    Hi,
    Ongoing DDL operations on the Oracle database do not allow the PL/SQL PackageDBMS_CAPTURE_ADM.BUILD to build the LogMiner Data Dictionary, as part of the GGSCI REGISTER EXTRACT command.
    NOTE: The DBMS_CAPTURE_ADM.BUILD procedure is the same as the DBMS_LOGMNR_D.BUILD procedure.
    exec dbms_goldengate_auth.grant_admin_privilege('USER_NAME');
    Connect to the Oracle database as SYSDBA  # sqlplus /nologin
    SQL> connect / as sysdba
    In the SYSDBA session, determine that there are no EXCLUSIVE DDL sessions.
    (Summary)  SQL> select mode_held, count(*) from dba_ddl_locks group by mode_held;
    (In detail)  SQL> select mode_held, name, type from dba_ddl_locks where mode_held = 'Exclusive' order by mode_held;
    (To identify a specific user process)  select l.name, l.type, l.mode_held, s.sid, s.program, s.username, p.spid, p.pidfrom dba_ddl_locks l, v$session s, v$process p where l.mode_held = 'Exclusive' and l.session_id = s.sid and s.paddr = p.addr;
    When there are no EXCLUSIVE mode DDL locks, re-run the GGSCI REGISTER EXTRACT command.
    In case this is not working then try for following steps,
    1. turn on sql trace
    2. identify SQL and its bind variables:
    declare
    extract_name varchar2(100) := :1;
    source_global_name varchar2(4000) := :2;
    firstScn number := :3;
    outbound_server_name varchar2(30);
    outbound_capture_name varchar2(30);
    capture_queue_name varchar2(30);
    queue_table_name varchar2(30);
    outbound_comment varchar2(125);
    BEGIN
    dbms_xstream_gg_adm.wait_for_inflight_txns := 'n';
    dbms_xstream_gg_adm.synchronization := 'none';
    dbms_xstream_gg_adm.is_goldengate := true; /* Construct the queue table name */
    queue_table_name := SUBSTR('OGG$Q_TAB_' || extract_name, 1, 30); /* Construct the capture queue name */
    capture_queue_name := SUBSTR('OGG$Q_' || extract_name, 1, 30); /* create capture queue */
    dbms_streams_adm.set_up_queue(queue_table => queue_table_name, queue_name => capture_queue_name); /* Construct the outbound capture name */
    outbound_capture_name := SUBSTR('OGG$CAP_' || extract_name, 1, 30); /* create capture specifying the first scn */ DBMS_XSTREAM_GG.SET_GG_SESSION();
    dbms_capture_adm.create_capture(queue_name => capture_queue_name,
    capture_name => outbound_capture_name,
    first_scn => firstScn,
    source_database => source_global_name); /* Construct the outbound server name */
    outbound_server_name := SUBSTR('OGG$' || extract_name, 1, 30); /* Construct the comment assosciated with this outbound server */ outbound_comment := extract_name || ' GoldenGate Extract';
    DBMS_XSTREAM_GG_ADM.ADD_OUTBOUND(server_name => outbound_server_name,
    capture_name=> outbound_capture_name,
    source_database=> source_global_name,
    committed_data_only => FALSE,
    wait_for_inflight_txns => 'N',
    synchronization => 'NONE',
    start_scn => firstScn,
    comment => outbound_comment);
    DBMS_XSTREAM_GG.SET_GG_SESSION(FALSE);
    END;
    3. run the sql manually under sqlplus.
    it hits:
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01502: index 'SYS.I_WRI$_OPTSTAT_TAB_OBJ#_ST' or partition of such index is
    in unusable state
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 746
    ORA-06512: at line 16
    4.
    SQL> select owner,status from dba_indexes where index_name='I_WRI$_OPTSTAT_TAB_OBJ#_ST';
    OWNER STATUS
    SYS UNUSABLE
    5.rebuild th index, but it did not help:
    alter index I_WRI$_OPTSTAT_H_OBJ#_ICOL#_ST rebuild;
    6. drop and recreate the index. Then the extract can be registered
    Thanks,
    GG Lover

  • HT204053 I have one apple id for my iPad and a second apple id for my iPhone and laptop. I just want to use one apple id. How do I delete the apple id on my iPad and make it consistent with the other two devices?

    I have one apple id on my iPad and a second apple id on my iPhone and laptop. I want to use one apple id for everything. I tried wiping my iPad and synching it with my laptop. The old apple id still remains on my iPad. I can't get rid of it. Help.

    On the iPad open Settings/iCloud and delete the account using the button at the bottom. Once deleted log in using the other account. For iTunes Stores use Settings/iTunes & Apps Stores, tapp on the Apple ID at the top then sign out. Once done sign in using the other account. Once you are happy with the changes plug your iPad into your computer to update the backup.

  • How can I make one cell search multiple other cells for a string of text and return whether or not the string appeared in the cells searched?

    https://www.icloud.com/iw/#numbers/BAI31boMQXsGKc8NH22BlqWRzbs8PdgWBs-F/2014-15_ Curriculum_Planning_w_CCSS_(Web_Shared)
    My document is above, if anyone wants to help this crazy teacher invent a better lesson planner.
    Here's my predicament.  The state in which I teach requires teachers to keep up with which of the Common Core State Standards (CCSS) their instruction is addressing and when the standards were addressed.  I got the bright idea to do this through a spreadsheet in Numbers because our school is getting iPads this year, so it'd be pretty sweet to be able to assemble all of my lesson plans in one massive spreadsheet.  On the "AP Lesson Plans" sheet, I've got a few weeks worth of lesson plans entered in.  I'm planning on going in and using the drop-down menu next to each lesson plan to add all the CCSS on a per-day basis.  This is simple enough, but here's where I run into a problem.
    I want the "AP Standards" sheet to concatenate, in cells D3 through G76, the dates on which a standard was covered.  What I need is some way for, say, Cell D3 to look at the table on the "AP Lesson Plans" sheet and concatenate the dates of every lesson which has the standard in column A (In this instance, RL.11-12.1).  At the end of the day, the functionality I need is that I can enter my lessons and CCSS on the "AP Lesson Plans" sheet and go to the other sheet and see a summary of which standards have been addressed, when, and how often.
    If that's as clear as mud, well, I teach literature, not technical writing, so my apologies.  I'm more at home with Jonathan Swift than spreadsheets.  I'll gladly help you help me if you'd let me know what you need to know.  Oh, and to illustrate my knowledge level (just enough to be dangerous), I've left you the formula of my best stab at making cell D3 behave as desired.  It's the gray box on the "AP Standards" sheet.  Yikes.

    Hi Arrdenet,
    Congratulations on the nested IFs. I haven't tested that formula, but it is impressive. It will be very difficult to debug if it doesn't work, and I think it would make Numbers very slow.
    Here is a different approach. After you enter all the CCSS, add another column with HLOOKUP.
    Edit:
    B2 (and Fill Down)
    A2 (and Fill Down)
    =IFERROR(HLOOKUP(A$1,C2:E2,1,0),"")
    HLOOKUP looks for the value in A1 in all the CCSS columns.
    IFERROR is to stop the error triangles appearing and returns "" (NULL) instead.
    Then sort by column A.
    Not a complete answer, but it might get you started.
    Regards,
    Ian.

  • How do I make one large MP3 of whole

    Hi
    I want to concatenate all 0 tracks of my audio CD and create a single MP3 file
    with ID3v tags. I can do this easily with iTunes, except for that it produces only
    ID3v2 tags. I have had a look on the Creative software (Media Creator?) but that
    doesn't seem to support this facility, or does it's Can anyone help out here?
    I usually use lame but that is just mp3 encoding; I need to concatenate the wav files
    into one big wav file first, I believe.
    Finally, I am looking only for [legal] freeware or shareware, be it for Windows or Linux,
    to do this.
    Any suggestions?
    Thanks in advance.

    Hi
    Thanks to all of your for your help - I will be trying them all out at some point.
    I also found this web page:
    http://www.boutell.com/scripts/catwav.html
    It has a quick script on it for concatenating wav files using sox - I found it handy
    and I knocked up a quick script of my own which I used for my one CD that I needed to
    do urgently. It works but is a bit crude. I'll paste it here in case anyone is at all
    intereste:
    #!/bin/sh
    i=0;
    for wavfile in *.wav; do
    i=$(($i+))
    echo "Converting wav file $wavfile to raw format($i)"
    sox $wavfile -r 4400 -c 2 -s -w /tmp/$i.cat.raw
    done;
    echo "Found $i wav files to concatenate."
    touch /tmp/partial.cat.raw
    x=0;
    while [ $x -ne $i ]; do
    x=$(($x+))
    echo "Adding raw version of wav file - no. $x"
    cat /tmp/partial.cat.raw /tmp/$x.cat.raw > /tmp/all.cat.raw
    mv /tmp/all.cat.raw /tmp/partial.cat.raw
    done;
    mv /tmp/partial.cat.raw /tmp/all.cat.raw
    echo "Finally, using sox to create final wav file from raw file"
    sox -r 4400 -c 2 -s -w /tmp/all.cat.raw /tmp/all.cat.wav
    #rm /tmp/*.cat.raw /tmp/all.cat.raw
    Thanks again.

  • One Apple ID used for two people's iPhones-what to do now?

    My Dad bought an iPhone 3G when it came out and, naturally, used his Apple ID for his purchases. When the 3GS came out, he upgraded and gave the 3G to my mom. Since she doesn't sync the iPhone with a computer, she's never made her own Apple ID.
    I'm wondering what the best course of action is, since she's bought quite a few apps using my Dad's account and wouldn't want to have to repurchase them if she created her own account. Is there any way to transfer certain apps?
    On that note, she recently got herself a nice MacBook Pro. Her iPhone 3G used to be synced to my Dad's old iBook, so I take it there's no way to start syncing her iPhone 3G with her MacBook Pro without restoring it? Thanks for your help!

    Authorize her computer with my dad's account meaning that she would be able to continue using his Apple ID and the apps she purchased with it
    Yes. She does not need to use his iTunes ID at all except to authorize her computer (since she purchased apps with his iTunesID).
    while syncing her iPhone with her MacBook Pro?
    Yes. In order to use the apps she purchased under his iTunes ID, on her own computer, it needs to be authorized for his iTunes ID.
    She can the use her own iTunes ID to make any further purchases.
    I guess it's nice to have that option (if I understood correctly), but I like your suggestion to just start fresh.
    She not really "starting fresh" as such.
    She is simply creating her own account and copying the stuff she purchased from the other computer.
    Authorize iTunes on her own computer then plug in the iPhone and File -> Transfer purchases to get these itmes into her own iTunes.

  • Adding individual cells from 3D array's pages to make one 2D array

    Hi everyone,
    Am a beginner, and have begun to like Labview. Especially because of great help available online (here) and other videos.
    Have managed to use all basic functionalities, but when I tried to add cell(i,j) across all k's (pages) of my 3D array, I am out of wits. 
    Tried Mathscript, but it doesn't handle 3D arrays. Eventually, Formula Node (C) came to rescue. Logic to do this is a no-brainer, but I don't know how to do it in Labview. Have tried things ranging from For loop, Insert into Array, Replace Array, Shift Register etc.
    If someone can answer this, I would be happy to get embarassed.
    Thanks

    Here's another possibility.
    Or this...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SumOfPlanes.gif ‏3 KB
    SumOfPlanes2.gif ‏3 KB

  • Make a large string using sql

    Ok all I want to do is generate a string of length X.
    so to generate a 1000 character string of 'X's I'm doing the following:
    select replace ('X','Y',1000) from dualThis is Just giving me X.
    What am I doing wrong.

    Use LPAD/RPAD:
    select lpad('X', 1000, 'Y')
    ,      length(lpad('X', 1000, 'Y'))
    from dual;http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions082.htm#SQLRF00663
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions140.htm#SQLRF06103

  • New version does not support RoboForm, went back to 3.6, get back to me when you make one we can use!

    new version disabled RoboForm, don't know why you put a new version out when we can't use it, went back to 3.6, it was either that or go back to Explorer. NOT IMPRESSED!

    Firefox is free, always has been, and will always be free. So much for your conspiracy theory.
    Roboform came out with a greatly enhanced version 7 that replaced version 6, with a lot of new features, so if you don't need all those new features why don't you use the "RoboForm Lite Standalone Extension" version of Roboform instead of the full version? <br />
    http://www.roboform.com/platforms/browsers/firefox <br />
    https://addons.mozilla.org/en-US/firefox/addon/roboform-online-password-manag/?src=ss

  • How to break up one large jspx page into two pages

    How do i break it up without losing the functinality of the application.
    thanks

    I fixed it like this:
    In the parent page:
    <af:panelTabbed id="panelTabbed1" inlineStyle="width:1900px; height:500px;">
    <af:showDetailItem text="tab name" id="showDetailItem1">
    <af:declarativeComponent id="id01" viewId="tabfragment1.jsff"/>
    </af:showDetailItem>
    <af:showDetailItem text="tab name" id="regProviderId">
    <af:declarativeComponent id="id02" viewId="tabFragment2.jsff"/>
    </af:showDetailItem>
    </af:panelTabbed>
    In the child pages:
    tab1 fragment 1 tabFragment1.jsff
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich" version="2.1"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <af:componentDef>
    your components inside
    </af:componentDef>
    </jsp:root>

Maybe you are looking for