How to extract one dimension out of a two dimensiona​l array

Hello,
May be this question is too naive and simple.I have a two dimensional array (two columns and 256 rows). All I want is to extract one of these columns as a separate one dimensional array. It seems like a very very basic task that any programming language should address. However, I could not find the right funciton in the array functions list. I am sure I am missing something very obvious. I tried index array, array subset, array to cluster and reshape array. None of them is the right function for this purpose. I have used LabVIEW for a quite a while now, but still I can not find a solution to this basic problem. Can someone help me out.
Thanks
Solved!
Go to Solution.

Hi -
With the Index Array  function have you tried wiring a number to the input labeled index (col)?
See the attached vi for an example.
Attachments:
array index1.vi ‏6 KB

Similar Messages

  • How to extract one of several audio tracks from a .vob file?

    Hi guys,
    hope you can help me, i'm looking for a solution for hours now but can't find one.
    I would like to know how to extract one audio track from a .vob file when there are different tracks/languages on the dvd? Media encoder does it very well, but i can't find the option for choosing the right audio track/language for extraction. Please help
    Kind regards
    Alex

    This is because the OMF specification requires mono audio files
    It really depends on what you are trying to do with the two tracks as to the best answer as far as 'grouping'
    You could select all the clips on both tracks and right mouse click and select 'group'
    You could send both tracks to a bus
    You could export the two tracks to a stereo file and bring that back into the session
    Lots more things I'm sure but a little more detail as to what you are trying to do would help

  • How do extract one page from one pdf document and save as a new pdf?

    How do I extract one page from a pdf document and create a new document?

    In Acrobat: Tools - Pages - Extract.
    In Reader it's not possible.
    On Sat, Jan 31, 2015 at 10:29 PM, Ned Murphy <[email protected]>

  • Can I extract one movie out of 4 from a previously burned DVD?

    I have a DVD with 4 separate short movies. I would like to extract one of them and put it on a separate DVD. Is this possible, and if yes how do I do it? Thanks, Dr. Steve
    IDVD 4; I Movie 4

    Hi Doc,
    best practise... ahh, you're a Doc, lege artis is to reimport from tape.. but that wasn't your question...
    yes, it is possible, with a loss of quality, due to the nature of dvds...:
    get for 20$ the Apple mpeg2 plugin
    and for free the tool Streamclip for converting mp1/2/4, divx, avi, vob...
    (with that combo you can NOT override copyprotection mechanisms! ... )
    http://danslagle.com/mac/iMovie/tips_tricks/6010.shtml
    http://danslagle.com/mac/iMovie/tips_tricks/6018.shtml

  • How to block one invoice out of two in APP

    Gurus,
    For one vendor 2 invoices are due.  because of some reasons, I don't want to pay one invoice out of that.  so it should not pickup in APP. How to block a particular invoice.

    Hi
    In APP after you run the Payment Proposal , payment proposal will be created.
    select Edit proposal button , you will see the 2 invoices.
    double click on the amount and again double click on the document which you do not want to pay.
    give payment block : A and enter and save.
    now you select schedule payment run , payment for only 1 invoice will be paid.
    here you will see 1 posting order generated & completed.
    Regards
    Venkat

  • How to extract the signal out from the waveform by my designated power level?

    Dear all,
         How can  I extract the signal from the waveform accroding to the power level? I read the Trigger&Gate.vi, but this vi extract signal according to the duration time. I want to extract signal according to power level.
         As shown in the following figures, the signal I want to process is between 130000 to 140000, if I zoom in, I can see the the useful signal is between 135400 to 138200. The question is how to extract the signal in the zone?  
        I tried the sub_NoiseEst_And_Chop_Shell.vi in the Packet_based_link example too, but this subvi seemed to be a little slow. Can anybody give me better advice? Thanks in advance!
    Solved!
    Go to Solution.

    I was working on something similar but haven't had time to fully develop it.
    My idea was to use an envelope detector (low pass filter) and then use an energy detection VI on the envelope.
    Here's where I left off
    Anthony F.
    Product Marketing Engineer
    National Instruments
    Attachments:
    test.vi ‏331 KB

  • 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.

  • How to copy data in text file into two-dimensional arrays?

    Greeting. Can somebody teach me how to copy the input file into two-dimensional arrays? I'm stuck in making a matrix with number ROWS and COLUMNS according to the data in "input.txt"
    import java.io.*;
    import java.util.*;
    public class array
        public static void main (String[] args) throws FileNotFoundException
        { Scanner sc = new Scanner (new FileReader("input.txt"));
            PrintWriter outfile = new PrintWriter("output.txt");
        int[][]matrix = new int[ROWS][COLUMNS];
    }my input.txt :
    a,b,c
    2,2,1
    1,1,1
    2,2,1
    3,3,1
    4,4,1
    5,5,1
    1,6,2
    2,7,2
    3,8,2
    4,9,2
    5,10,2

    import java.io.*;
    import java.util.*;
    public class array {
        public static void main(String[] args) throws IOException {
            FileInputStream in = null;
            FileOutputStream out = null;
    try {
        in = new FileInputStream("input.txt");
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String line = null;
        while ((line = reader.readLine()) != null) {
            String split[]=line.split(",");
    catch (IOException x) {
        System.err.println(x);
    } finally {
        if (in != null) in.close();
    }}}What after this?

  • How to make one file out of many documents?

    Hi, I have a collection of documents created in Pages. I would like to have these available as a single file. I currently have a workaround where I change each document to a PDF, then use Acrobat to create a single PDF from each individual PDF. However this is cumbersome and I would like to maintain the Pages file type.
    I am aware that I cannot insert one Pages document into another - but is there any way to automate or work around this other than copying and pasting each document into a new file?
    Thank you,
    G5   Mac OS X (10.4.6)  

    Hello bottlenose,
    when you are working with Pages 2.x than you can copy and paste the thumbnail pages out of and into the thumbnail views (menu: "View/Show Page Thumbnails") of multiple documents. The only thing you should know is, the inserted style names will be overwritten by the existing styles with the same name. So be sure you have different style names for different paragraph appearances in both documents before you copy them.
    By the way, the is a handy little app called "PDFLab" (grab it here: http://www.iconus.ch/fabien/pdflab/) with which you can combine and split PDF documents (and do a lot of other things) without starting the behemoth Acrobat.

  • How to extract a column out of a large ASCII file?

    Hi all.
    After searching the board and applying several solution approaches my problem still remains. Maybe you can help me.
    The data source i've to deal with are large ASCII files (~540 MB) with 14 columns (delimiter: TAB). Each column represents one channel. The number of characters in each "field" is variable. I have to read user defined columns (=channels) out of each data set. Needless to say that reading the whole file runs into memory problems.
    If anyone has an idea i would be happy
    Thanks in advance.
    Greets
    Kane

    I hate to defocus you, but there is a more efficient way to do this.  My apologies that I do not have the time to write code, but here is the pseudo code.
    Create an array for your output greater than or equal to what you think you will need.
    Read a 65,000 character chunk from the file (or the rest of the file, whichever is smaller).
    Use the string search functions functions to find successive line ends and the appropriate tab character delimiters for your column.
    Convert and replace the element in your output array.
    When done, trim your output array to the right size.
    If you drop an LVM read, convert it to a regular VI, and dive in, you will see an example of this type of process.  The idea is to keep disk reads, which are very inefficient, to a minimum.  It also minimizes your memory allocations, because you do not need to resize your input buffer for every line.  Problems you will need to deal with (which are handled by the LVM read) are such things as:
    Your line crosses a chunk boundary.
    The end-of-file creates a smaller chunk than 65,000 characters (the optimum chunk size for Win32 systems).
    The end-of-line character is not well defined (in your case, this is probably not an issue)
    Searching for a character can produce memory allocations
    You may want to try reading the data as a U8 array instead of a string and doing your searches on that instead of the string.
    I have always wanted to write the piece of code, but never had the time or reason to do so.  Good luck.  I will try to help if I can.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to reburn one disk out of a multiple disk audiobook.

    There are a dozen disks in this audiobook and disk 11 for some reason has no content (reads as a blank disk even though it was produced via the normal burning process). So I need to reburn that disk and don't want to waste a bunch of disks by reburning the whole thing. Can someone tell me how to do this? Thanks. --Or at least tell me if it can't be done. Thanks.

    If you are lucky enough that CD 3 spanned only one audio file, you can edit the audio file's "Start" and "Stop" times in the "Get Info -> Options" tab. iTunes is smart enough that even if the track is longer than the length of your CD, if the section you have told it to Start and Stop from is short enough, it will burn it.
    Unfortunately, if your CD 3 spans two or more audio files, iTunes doesn't realize that the Start/Stop sections collectively add up to less than 74min. It makes you burn only that single track before it realizes it's a shortened track. At least this is how it works for iTunes 7.3.2.6 (last one available for Win2K).
    Anyone know how to burn half of one track and all or half of another onto one CD? An option to split a track into two or more tracks would be helpful.

  • How to delete one record out the two?

    Hi all,
    A have an Orders table:
    ACCOUNT, ORDER_NO, ORDER_DATE
    I have a few cases where there two accounts have the same ORDER_NO. I dont think this is right in a traditional Orders/ Orderline relationship!
    For Example:
    ACCOUNT     ORDER_NO     ORDER_DATE
    WYM01     O15506     01/09/2004
    DA4060     O15506     01/09/2004
    What is the best way to delete one of these? There are quiet a few so I was looking into cursors.
    Thanks

    You can do it like this
    DELETE
      FROM orders
    WHERE ROWID IN ( SELECT row_id
                        FROM (SELECT ROWID       row_id
                                    ,ROW_NUMBER () OVER ( PARTITION BY order_no
                                                              ORDER BY ROWID
                                                        ) row_num
                                FROM orders
                       WHERE row_num <> 1
                    );Regards
    Arun

  • How to assign One Dimension Property value to another Dimension ID

    Business senario:
    There are two dimensions Entity and Plant. Plant also has a property Entity.
    In my Input Form, I need to derive Entity Property based on PLANT selection and should map it to ENTITY Dimension.
    I have selected PLANT Dimension and ENTITY Dimension in Page Axis. I have updated EPMOLAPMember() formula with EPMMemberProperty() for deriving Entity values. When I tried to save data an error message appears saying TOT_Code is not a base level member. So I checked Edit Report window and found that ENTITY Dimension is automatically moved to default left panel from Row Axis and Entity Dimension Context Menu is mapped to TOT_Code which is the top node of the total hierarchy.
    I tried EPMMemberOverride() function to overwrite ENTITY Dimension values with Entity Property of PLANT Dimension but unable to overwrite it.
    In Simple Words:
    ENTITY Dimension = PLANT Dimension (Entity Property)
    Is there any way to map/assign property value to another dimension??? Please help me.
    Thanks in advance.

    Hi,
    see please this thread for a possible solution http://scn.sap.com/thread/3230754
    Regards
         Roberto

  • How to Sort one key figure values in two column based on single char

    hi gurus,
    I would really appreciate if some one can help me out with my question.
    I have to design a query based on a Multiprovider built on three ODS, Purchasing, Confirmations & Invoic ODS
    Purchase order Value and Number data in PO ODS, and confirmations is in CONFODS, Invoice Values in INV ODS,
    The design of the requirement is
    Vendor --> PO --> Material PO Value --> Text PO Value  --> Confirmation value --> Invoice value
    There are Two POS 1. Material PO & 2. Text PO
    I need to display all the Purchase orders for a vendor and in different columns i need to display the value of the Material PO and Text PO and their Confirmation Value and how much is the invoiced value for every PO.
    Can anybody tell me what should i do in the Query Designer to display the necessary values.
    Thank you

    Hi william,
    When i put in the PO KF in the column and also the Confirmation KF in other Column it either shows me # for both the entries or it shows me values in only one of the column
    if PO is displayed the Confirmation is not displayed and if Confirmation is displayed PO values are shown as # i dont know what wrong i am doing.
    if you have idea can you tell me what i should do when i want two different values from two ODS if there are no characteristics that are matching in either of the ODS should i go for Multi Provider and if so how should be my designing. i would really appreciate if you can tell me taking a scenerio.
    Thanks

  • How to implement one to many relationship between two Document Line Table

    Hi,
    I want to implement the following relationship into user defined tables:
    Example Situation:
    There are tables A, B and C.
    For one record of Table A, there could be multiple records in table B.
    For one record of Table B, there could be multiple records in table C.
    i.e. A(1) -> B(n) [One to many relationship]
         B(1) -> C(n) [One to many relationship]
    finally: A(1) -> B(n) -> C(n)
    How can I achieve this? If I make Table A as Document and table B & C as Document Line and then make them UDO, will it work? Kindly suggest me a solution.
    Regards,
    Sudeshna.

    Hi,
    I think that the database representation is exactly what you ask for. 3 tables, A, B, C. A should have a UDF that is linked to B table, and B should have a UDF that is linked to C table.
    You should manage the database transactions, and the UI to support all this stuff.
    Regards,
    IBai Peñ

Maybe you are looking for

  • Function Module to send a mail

    I have a pdf file. I need to send this pdf file through mail by using a program. Can anybody tell what is the function module used for this?

  • A/c assignmt  X while doing a PO

    Hi, I want to create a PO with A/c assignment category: X but do not want to post it any cost centre. Our requirement is, it should directly assign to a profit centre because the finance people wants the costs to be adjusted into stock a/c. But when

  • Not able to connect USB link on WRT160NL router

    I just bought a refurbished WRT160NL router. The router is working fine, but when i tried connecting my Extrernal hdd it is not detecting. It tried using my pen drive(1gb - NTFS formated) its detecting, but cant map the network drive.  I typed \\WRT1

  • Query specific authorisations

    Hi experts! maybe anyone has an idea how to solve this problem: query1: salesman only can view his customer related data with all KF´s query2: salesman can view all customer data, but only some KF´s How is it possible to make authorisations (rsecadmi

  • Addon EA-HR_MSS 1.0 0008 installation PRD for MSS

    Dear This is necessary to lock all users while apply new addon or apply support packs bcaz we are doing this activity on prd server kindly suggest one more thing support pack should be same level as quality or i can install just addon without support