How to find the way to rows and columns of matrix

Hello everyone

I have a matrix N * M with some of the elements with only 0 and 1.

has every element that is 1 (line, column).

I want to find the elments 1 and find the way to lines which is 1, and also the average columns.

Thank you very much

my email: [email protected]


Tags: NI Software

Similar Questions

  • How to find the discussions in JDeveloper and ADF subspace in this forum, I created?

    Hi, experts.

    I know there are way to find in subspace JDeveloper and ADF discussions in this forum, I created.

    But I have tried and tried and can't find a way to again tonight.

    (I searched the menu: profile, activity, action, inbox etc..)

    Can someone give some advice?

    Thank you.

    Click on your name at the top of this page, then click on "view profile".

    Here you have a link to 'content' and that brings other links on the left where we are 'written '.

    don't know if you can filter it into subspace...

    Good bye

    DPT

  • How to find the string of TextFrame and replace (CS3)

    I want to search the textFrame chain after that I want to replace it. How to do in CS3. can someone tell me.

    Search / replace is a single operation. Unless for a particular situation, you don't have to search first. (By the way, if you do search for first and store the results, they will no longer valid after the change.)

    Management texts related support 'findText' and 'changeText' methods, so this code snippet

    app.findTextPreferences = null;
    app.findTextPreferences.findWhat = 'something';
    app.changeTextPreferences.changeTo = 'something';
    Alert ("this is a" + app.selection [0].constructor.name ' ");
    App.Selection [0] .changeText ();

    works fine if you select a block of text and run.

  • R12 - how to find the exact form, report, and Web Server Version

    Hi DBAs,


    How can I find the version of web server, report and exact form in environments of R12.

    Thank you
    -Samar-

    If you're on 11i, pl see MOS Doc 466890.1 (Script to find the Apache, Java, Jinitiator, version of forms and details of the JVM for Oracle E-Business Suite 11i)

    For R12, see Doc 468311.1 (Script to find the Apache, Java, JRE, Forms for Oracle E-Business Suite R12 version)

    HTH
    Srini

  • How to find the value duplicate of each column.

    I have it here are four columns,
    How can I find the duplicate of each columns value.

    with All_files like)
    Select ' 1000 'like BILL, "2000" AS DELIVERYNOTE, CANDELINVOICE ' 3000', '4000' CANDELIVERYNOTE of all union double
    Select ' 5000 ', ' 6000', ' 7000 ', ' 8000' Union double all the
    Select '9000 ', '1000', '1100',' 1200' from dual union all
    Select ' 1200 ', ' 3400', ' 6700 ', ' 8790' Union double all the
    Select ' 1000 ', ' 2000', ' 3000 ', ' 9000' Union double all the
    Select '1230', '2340', ' 3450 ', ' 4560' double
    )
    SELECT * from All_files


    Output should be as shown below.

    1000 2000 3000 4000
    9000 1000 1100 1200
    1200 3400 6700 8790
    1000 2000 3000 9000

    Required to check uniqueness columns.

    Thank you.

    Hello

    If you are not too concerned about performance, this should give you the desired result:

    SELECT distinct INVOICE, DELIVERYNOTE, CANDELINVOICE, CANDELIVERYNOTE
    FROM (
      SELECT a.*,
             count(*) over(partition by t.column_value) cnt
      FROM All_files a,
           table(
             sys.odcivarchar2list( a.INVOICE
                                 , a.DELIVERYNOTE
                                 , a.CANDELINVOICE
                                 , a.CANDELIVERYNOTE ) ) t
    )
    WHERE cnt > 1
    ;
    
  • Referring to the dynamic cursor rows and columns in SQL

    I have a procedure that dynamically reads a schema name and a table name in a table entry. The code must loop through all the rows and the columns in each table and the output data. I'm done with what I want to achieve 95%, but there is a little bug. The dbms_output.put(*col.column_name* ||) line '',''); ' ||
    return to something like rec.col.column_name , so that it is the column of the current record. Currently, it simply displays the name of the column for each record instead of the actual value. Can someone help me to change the code to get the real value?

    CREATE OR REPLACE PACKAGE BODY some_proc
    -Function and procedure implementations
    PROCEDURE create_files IS
    CURSOR c_tbls IS
    SELECT * FROM tbl_list;
    l_sql VARCHAR2 (4000);
    BEGIN
    -To loop through all the tables
    FOR tbl IN c_tbls LOOP
    l_sql: = "DECLARE" | «C_tbl_recs CURSOR IS» | ' SELECT * ' |. '
    'FROM ' | tbl.schema_name | '.' || tbl.table_name | '; ' ||
    ' t_tbl_rowtype c_tbl_recs % ROWTYPE; ' || "START" |
    "FOR rec IN c_tbl_recs LOOP |
    ' FOR col IN (SELECT column_name ' |)
    "FROM dba_tab_cols" |
    "Owner WHERE ="' | " tbl.schema_name | '''' ||
    ' AND table_name = "' | tbl.table_name | '''' ||
    ORDER BY column_id) LOOP '.
    *' dbms_output.put(col.column_name ||) '',''); ' || * "END OF LOOP; dbms_output.put_line('''); END LOOP; ' ||
    ' END; ';
    -dbms_output.put_line (l_sql);
    EXECUTE IMMEDIATE l_sql;
    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (SQLERRM);
    END;
    END;

    Is this what you are looking for?
    (it took a few minutes)

    create or replace
    package some_proc is
    procedure create_files;
    end;
    /
    
    CREATE OR REPLACE
    PACKAGE BODY some_proc
    IS
      -- Function and procedure implementations
    PROCEDURE create_files
    IS
      CURSOR c_tbls
      IS
        SELECT * FROM tbl_list;
    
      CURSOR c_cols (p_table_owner VARCHAR2, p_table_name VARCHAR2)
      IS
        SELECT column_name
        FROM all_tab_columns
        WHERE owner   =p_table_owner
        AND table_name=p_table_name
        ORDER BY all_tab_columns.column_id;
    
      l_sql     VARCHAR2(32000);
    
      separator VARCHAR2(1):=';';
    
    BEGIN
      --Loop through all tables
      FOR tbl IN c_tbls
      LOOP
        dbms_output.put_line('TABLE: '||tbl.schema_name||'.'||tbl.table_name);
        l_sql := 'DECLARE ' ;
        l_sql := l_sql|| '  CURSOR c_tbl_recs IS ' ;
        l_sql := l_sql||'    SELECT * FROM ' || tbl.schema_name || '.' || tbl.table_name || '; ' ;
        l_sql := l_sql||'    linenr number:=1; ';
        l_sql := l_sql||'BEGIN ' ;
        l_sql := l_sql|| ' FOR rec IN c_tbl_recs LOOP ';
        FOR c IN c_cols(tbl.schema_name,tbl.table_name)
        LOOP
          l_sql:=l_sql ||' if linenr=1 then  dbms_output.put('''||c.column_name||''||separator||'''); end if; ' ;
        END LOOP;
        l_sql :=l_sql||'  dbms_output.put_line(''''); linenr:=linenr+1; ';
        FOR c IN c_cols(tbl.schema_name,tbl.table_name)
        LOOP
          l_sql:=l_sql ||' dbms_output.put(rec.'||c.column_name||'||'''||separator||'''); ' ;
        END LOOP;
        l_sql:=l_sql||'  end loop; ';
        l_sql:=l_sql||'  dbms_output.put_line(''''); ';
        l_sql:=l_sql||'  dbms_output.put_line(''''); ';
        l_sql:=l_sql||'end;';
        EXECUTE IMMEDIATE l_sql;
      END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line(SQLERRM);
    END;
    END;
    /
    
  • How to find a way to open and run the Microsoft Windows tool remover malware?

    I downloaded it from microsoft, they give no instructions to use it.. ??? HELP AS SOON AS POSSIBLE PLEASE

    Double click on the download save or right click on it, then "Run as Admin" > next > next > what type of analysis you want to make your choice:

    1. quick Scan

    2 full Scan (may take several hours)

    3. Custom Scan

    Then do the scan.

    See you soon.

  • How to find the basis of registry and file settings for windows xp

    I need to know how to save registers and settings of a windows XP hard files Bank that has no back/restore cd. Can I simply find restore point files and just copy and paste it on the disc after full format and re-installation of operating system?

    Theres a lot in the registry. You will need to reinstall windows and then reinstall everything after

  • How to find the index is local and the global in the dictionary of the oracle

    Is there a way to know if the index partition is global or local oracle dictionary.

    Is there a way to know if the index partition is global or local oracle dictionary.

    select index_name, locality from all_part_indexes
    
  • How to find the middle name of any column NAME

    I wrote under request

    why this market not could you please help me?

    Select substr (ename, instr (ename,' ', 1, 1), instr (ename, ' ', 1.2)) of e1

    InStr, primary function must return the first position of the space and

    2 nd instr, function should return 2nd space

    so we can specify in substr function to extract the form position of string from this place to that place

    It would be very useful that you explain the reason

    Best regards

    Prem kumar

    Select

    -case when length (substr (ename, instr (ename,' ', 1.2))) = length (ename) then

    (case when length (substr (name, instr (ename,' ', 1.1))) = length (ename) then null)

    of another substr (ename, instr (ename,' ', 1, 1) + 1) end)

    of another substr (ename, instr (ename,' ', 1, 1) + 1, instr(ename,' ',1,2)-instr(ename,' ',1,1)-1)

    end middle_name

    of e1;

    Select

    -case when length (substr (ename, instr (ename,' ', 1.2))) = length (ename) then

    (case when length (substr (ename, instr (ename,' ', 1.1))) = length (ename) then null)

    of another substr (ename, instr (ename,' ', 1, 1) + 1) end)

    of another substr (ename, instr (ename,' ', 1, 1) + 1, instr(ename,' ',1,2)-instr(ename,' ',1,1)-1)

    end middle_name

    from (select 'asw nag raj' ename of double)

    Union

    Select "raj asw ght" double

    Union

    Select 'raj asw dfjadf Tom' from dual) e1;

  • How to find the locaion of a particular column in a database

    Hi experts,

    I have the column name x. I want to know under what table it is present.


    What may be the syntx for sql.

    Thank you
    V
    select owner,table_name
    from all_tab_columns
    where column_name = 'XXX'
    /
    

    where XXX is the column name, looking for

  • How to find the path of reports to PDF and send them via JAVA?

    Hi expert,

    We have created many reports of OBIEE, how to find the way of reports to PDF and send them via JAVA?
    Catalog/shared /..., but it is a binary file that is not sent to the customers.

    Hey kobe,.

    You can try this:

    http://satyaobieesolutions.blogspot.com/2012/07/setting-up-iBOT-to-save-report-to.html

  • How to find the second largest in a pl/sql table

    Hello friends,

    I want to find the first and second maximum items in a pl/sql table.

    Here's the code...

    DECLARE
    Max_earnings_type TYPE TABLE IS NUMBER;
    max_earnings_tab max_earnings_type: = max_earnings_type();
    number of v_count: = 0;
    number of v_max_earnings;


    Can someone give me how to find the maximum first max and second in the type of the given table.

    appreciate your help.

    Thank you/kumar

    Published by: kumar73 on October 21, 2010 09:42

    kumar73 wrote:

    When I tried to implement your logic in my application, I get the following error...

    PL/SQL: digital or value error: NULL index key value table

    What happens if the PL/SQL table has NULL values. Question is how you want to handle NULL values. You want to ignore nulls as GROUP BY do? If you want to consider NULL values, you can say if you want to order the NULLS FIRST or NULLS LAST. I guess that logical GROUP BY:

    DECLARE
        TYPE max_earnings_type IS TABLE OF NUMBER;
        TYPE max_earnings_sorted_type IS TABLE OF NUMBER
          INDEX BY BINARY_INTEGER;
        max_earnings_tab        max_earnings_type;
        max_earnings_tab_sorted max_earnings_sorted_type;
    BEGIN
        SELECT  sal + comm
          BULK COLLECT
          INTO  max_earnings_tab
          FROM  emp;
        FOR v_i in 1..max_earnings_tab.count LOOP
          IF max_earnings_tab(v_i) IS NOT NULL
            THEN
              max_earnings_tab_sorted(max_earnings_tab(v_i)) := 1;
          END IF;
        END LOOP;
        DBMS_OUTPUT.PUT_LINE('MAX value in PL/SQL table is ' || nvl(to_char(max_earnings_tab_sorted.last),'NULL'));
        DBMS_OUTPUT.PUT_LINE('Second MAX value in PL/SQL table is ' || nvl(to_char(max_earnings_tab_sorted.prior(max_earnings_tab_sorted.last)),'NULL'));
    END;
    /
    MAX value in PL/SQL table is 2650
    Second MAX value in PL/SQL table is 1900
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT  sal + comm
      2    FROM  emp;
    
      SAL+COMM
    ----------
    
          1900
          1750
    
          2650
    
          1500
    
      SAL+COMM
    ----------
    
    14 rows selected.
    
    SQL>
    

    SY.

  • How can I change the font and size of legends? The manual says it's possible, but I lose a lot of time trying to find the way. Help please.

    The manual says it's possible, but I lose a lot of time trying to find the way. Help please.

    I think that the subtitle Editor is not very well developed, since I adapt the text, the timming, but then, text does not fit, or letters are very separated... and I can't work out these details.

    Thank you

    I don't think that you can change the size of the police with captions. I think that because it is a 'standard' you are limited to what this standard supports only. If the manual says: you can change the font size then it probably still says: you can change the fonts familty. I was never able to change the size of police or the family. The manual should be rewritten to prevent people to mislead him.

  • How to find the first Sunday and the second Saturday of each month

    Hi all

    How to find the first Sunday and the second Saturday of each month

    Thank you

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production

    994122 wrote:

    Hello

    I need to pass the months parameter how to do this? like Jan, Feb etc... (one of those)

    Do you have a procedure?

    Should you output only for the months you passed in the parameter?

    The easiest way is to set the parameter as date. When you go such as p_date as DATE ' 2014-10-01', then you can

    PROCEDURE two_dates)

    p_date IN DATE

    p_first_sunday DATE

    p_second_saturday DATE

    )

    IS

    BEGIN

    p_first_sunday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-12', 'DAY'));

    p_second_saturday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-11', 'DAY')) + 7;

    END two_dates;

    Or you describe what you need.

Maybe you are looking for