Loading ...
Sorry, an error occurred while loading the content.
 

Sum Terms in and Array (Matrix)

Expand Messages
  • Eberhardt Friedrich
    Greetings, I make some operations and the result is a matrix of 225 row by 225 columns. I have to sum all terms in a column and after i have to get a matrix
    Message 1 of 18 , Feb 1, 2006
      Greetings,

      I make some operations and the result is a matrix of 225 row by 225 columns. I have to sum all terms in a column and after i have to get a matrix of 1 row by 225 column.

      How can i do these in liberty basic?
      thanks
      Josue

      __________________________________________________
      Correo Yahoo!
      Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
      Regístrate ya - http://correo.espanol.yahoo.com/

      [Non-text portions of this message have been removed]
    • Ingemar Bjerle
      Josue dim a(225,225):dim b(225) Your matrix is a(225,225) with first pos row =i and last col=k for k=1 to 225 for i =1 to 225 a(i,k)=.1 fill in the matrix to
      Message 2 of 18 , Feb 1, 2006
        Josue
        dim a(225,225):dim b(225)
        'Your matrix is a(225,225) with first pos row =i and last col=k
        for k=1 to 225
        for i =1 to 225
        a(i,k)=.1 'fill in the matrix to test that it works
        next i
        next k

        for k=1 to 225
        a1=0
        for i=1 to 225
        a1=a1+ a(i,k)' summation of all values in column =k
        b(k)=a1
        next i
        next k

        for k=1 to 225
        print b(k)
        next k

        Hopefully this is what you were asking for
        Ingemar


        ----- Original Message -----
        From: "Eberhardt Friedrich" <ebjofrie@...>
        To: <libertybasic@yahoogroups.com>
        Sent: Wednesday, February 01, 2006 1:20 PM
        Subject: [libertybasic] Sum Terms in and Array (Matrix)


        Greetings,

        I make some operations and the result is a matrix of 225 row by 225
        columns. I have to sum all terms in a column and after i have to get a
        matrix of 1 row by 225 column.

        How can i do these in liberty basic?
        thanks
        Josue

        __________________________________________________
        Correo Yahoo!
        Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
        Regístrate ya - http://correo.espanol.yahoo.com/

        [Non-text portions of this message have been removed]




        Yahoo! Groups Links
      • stefanhes
        ... 225 columns. I have to sum all terms in a column and after i have to get a matrix of 1 row by 225 column. ... dim M(256,256) dim Result(256) for c=1 to 255
        Message 3 of 18 , Feb 1, 2006
          --- In libertybasic@yahoogroups.com, Eberhardt Friedrich
          <ebjofrie@y...> wrote:
          >
          > Greetings,
          >
          > I make some operations and the result is a matrix of 225 row by
          225 columns. I have to sum all terms in a column and after i have to
          get a matrix of 1 row by 225 column.
          >
          > How can i do these in liberty basic?
          > thanks
          > Josue
          >
          dim M(256,256)
          dim Result(256)
          for c=1 to 255
          sum=0
          for r=1 to 255
          sum=sum+M(c,r)
          next r
          Result(c)=sum
          next c

          Stefan Hesseling
        • Eberhardt Friedrich
          Thanks Ingemar, if i want to sum in a row i have to change the suscripts i for k and viceversa? thanks Josue Ingemar Bjerle escribió: Josue
          Message 4 of 18 , Feb 1, 2006
            Thanks Ingemar, if i want to sum in a row i have to change the suscripts i for k and viceversa?

            thanks
            Josue

            Ingemar Bjerle <ingbje@...> escribió:
            Josue
            dim a(225,225):dim b(225)
            'Your matrix is a(225,225) with first pos row =i and last col=k
            for k=1 to 225
            for i =1 to 225
            a(i,k)=.1 'fill in the matrix to test that it works
            next i
            next k

            for k=1 to 225
            a1=0
            for i=1 to 225
            a1=a1+ a(i,k)' summation of all values in column =k
            b(k)=a1
            next i
            next k

            for k=1 to 225
            print b(k)
            next k

            Hopefully this is what you were asking for
            Ingemar


            ----- Original Message -----
            From: "Eberhardt Friedrich" <ebjofrie@...>
            To: <libertybasic@yahoogroups.com>
            Sent: Wednesday, February 01, 2006 1:20 PM
            Subject: [libertybasic] Sum Terms in and Array (Matrix)


            Greetings,

            I make some operations and the result is a matrix of 225 row by 225
            columns. I have to sum all terms in a column and after i have to get a
            matrix of 1 row by 225 column.

            How can i do these in liberty basic?
            thanks
            Josue

            __________________________________________________
            Correo Yahoo!
            Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
            Regístrate ya - http://correo.espanol.yahoo.com/

            [Non-text portions of this message have been removed]




            Yahoo! Groups Links












            ---------------------------------
            YAHOO! GROUPS LINKS


            Visit your group "libertybasic" on the web.

            To unsubscribe from this group, send an email to:
            libertybasic-unsubscribe@yahoogroups.com

            Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


            ---------------------------------




            __________________________________________________
            Correo Yahoo!
            Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
            Regístrate ya - http://correo.espanol.yahoo.com/

            [Non-text portions of this message have been removed]
          • Ingemar Bjerle
            Yes! Try that and if it does not work let me know. Ingemar ... From: Eberhardt Friedrich To: Sent:
            Message 5 of 18 , Feb 1, 2006
              Yes! Try that and if it does not work let me know.
              Ingemar
              ----- Original Message -----
              From: "Eberhardt Friedrich" <ebjofrie@...>
              To: <libertybasic@yahoogroups.com>
              Sent: Wednesday, February 01, 2006 4:42 PM
              Subject: Re: [libertybasic] Sum Terms in and Array (Matrix)


              Thanks Ingemar, if i want to sum in a row i have to change the suscripts i
              for k and viceversa?

              thanks
              Josue

              Ingemar Bjerle <ingbje@...> escribió:
              Josue
              dim a(225,225):dim b(225)
              'Your matrix is a(225,225) with first pos row =i and last col=k
              for k=1 to 225
              for i =1 to 225
              a(i,k)=.1 'fill in the matrix to test that it works
              next i
              next k

              for k=1 to 225
              a1=0
              for i=1 to 225
              a1=a1+ a(i,k)' summation of all values in column =k
              b(k)=a1
              next i
              next k

              for k=1 to 225
              print b(k)
              next k

              Hopefully this is what you were asking for
              Ingemar


              ----- Original Message -----
              From: "Eberhardt Friedrich" <ebjofrie@...>
              To: <libertybasic@yahoogroups.com>
              Sent: Wednesday, February 01, 2006 1:20 PM
              Subject: [libertybasic] Sum Terms in and Array (Matrix)


              Greetings,

              I make some operations and the result is a matrix of 225 row by 225
              columns. I have to sum all terms in a column and after i have to get a
              matrix of 1 row by 225 column.

              How can i do these in liberty basic?
              thanks
              Josue

              __________________________________________________
              Correo Yahoo!
              Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
              Regístrate ya - http://correo.espanol.yahoo.com/

              [Non-text portions of this message have been removed]




              Yahoo! Groups Links












              ---------------------------------
              YAHOO! GROUPS LINKS


              Visit your group "libertybasic" on the web.

              To unsubscribe from this group, send an email to:
              libertybasic-unsubscribe@yahoogroups.com

              Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


              ---------------------------------




              __________________________________________________
              Correo Yahoo!
              Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
              Regístrate ya - http://correo.espanol.yahoo.com/

              [Non-text portions of this message have been removed]




              Yahoo! Groups Links
            • Eberhardt Friedrich
              Greetings, i have another question, in the plotting program that i attach i read a data to plott. When i read the program automatic make and array for these
              Message 6 of 18 , Feb 2, 2006
                Greetings, i have another question, in the plotting program that i attach i read a data to plott. When i read the program automatic make and array for these data.

                I want to multiplicate each y value bye a sinuidal function. How can i do these?

                For example for i = 1 to n (number of xy pair)
                c = y(i)* sin(2*pi)
                next i

                __________________________________________________
                Correo Yahoo!
                Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
                Regístrate ya - http://correo.espanol.yahoo.com/
                ----------

                0,4113
                1,4155
                2,4189
                3,4170
                4,4086
                5,4033
                6,4094
                7,4194
                8,4199
                9,4085
                10,4008
                11,4104
                12,4275
                13,4347
                14,4302
                15,4229
                16,4164
                17,4098
                18,4098
                19,4199
                20,4293
                21,4266
                22,4172
                23,4150
                24,4230
                25,4352
                26,4495
                27,4665
                28,4757
                29,4704
                30,4635
                31,4694
                32,4843
                33,4961
                34,4994
                35,5021
                36,5134
                37,5318
                38,5463
                39,5506
                40,5522
                41,5599
                42,5728
                43,5831
                44,5861
                45,5866
                46,5905
                47,5972
                48,6038
                49,6066
                50,6099
                51,6239
                52,6510
                53,6742
                54,6806
                55,6793
                56,6829
                57,6920
                58,7016
                59,7089
                60,7155
                61,7242
                62,7372
                63,7473
                64,7456
                65,7371
                66,7395
                67,7583
                68,7792
                69,7910
                70,7979
                71,7993
                72,7919
                73,7838
                74,7845
                75,7911
                76,7988
                77,8074
                78,8159
                79,8216
                80,8251
                81,8264
                82,8246
                83,8213
                84,8186
                85,8161
                86,8132
                87,8085
                88,8039
                89,8014
                90,7995
                91,8055
                92,8271
                93,8555
                94,8757
                95,8896
                96,8978
                97,8962
                98,8898
                99,8927
                100,9062
                101,9202
                102,9270
                103,9316
                104,9430
                105,9624
                106,9842
                107,10033
                108,10227
                109,10506
                110,10913
                111,11324
                112,11601
                113,11808
                114,12138
                115,12660
                116,13226
                117,13678
                118,14071
                119,14643
                120,15477
                121,16438
                122,17411
                123,18425
                124,19553
                125,20778
                126,22155
                127,23845
                128,25853
                129,27666
                130,28990
                131,30162
                132,31551
                133,33104
                134,34663
                135,36198
                136,37699
                137,39065
                138,40300
                139,41469
                140,42553
                141,43606
                142,44846
                143,46342
                144,47683
                145,48634
                146,49302
                147,49603
                148,49478
                149,49159
                150,48831
                151,48397
                152,47785
                153,47109
                154,46016
                155,44096
                156,41551
                157,38853
                158,35986
                159,33035
                160,30139
                161,27252
                162,24532
                163,22011
                164,19647
                165,17435
                166,15377
                167,13452
                168,11631
                169,9967
                170,8524
                171,7287
                172,6233
                173,5385
                174,4693
                175,4075
                176,3550
                177,3115
                178,2783
                179,2530
                180,2307
                181,2120
                182,1979
                183,1901
                184,1861
                185,1802
                186,1724
                187,1654
                188,1604
                189,1568
                190,1547
                191,1547
                192,1547
                193,1532
                194,1509
                195,1483
                196,1452
                197,1419
                198,1379
                199,1339
                200,1327
                201,1363
                202,1395
                203,1373
                204,1317
                205,1280
                206,1263
                207,1269
                208,1327
                209,1428
                210,1481
                211,1453
                212,1396
                213,1351
                214,1305
                215,1277
                216,1275
                217,1287
                218,1301
                219,1323
                220,1332
                221,1309
                222,1278
                223,1264
                224,1263
                225,1304



                [Non-text portions of this message have been removed]
              • John Fisher
                ... I am not entirely sure what you want to do, since multiplying by sin( 2 PI) is to multiply by zero! However the attached might give you ideas... it reads
                Message 7 of 18 , Feb 2, 2006
                  Eberhardt Friedrich wrote:

                  >Greetings, i have another question, in the plotting program that i attach i read a data to plott. When i read the program automatic make and array for these data.
                  >
                  > I want to multiplicate each y value bye a sinuidal function. How can i do these?
                  >
                  > For example for i = 1 to n (number of xy pair)
                  > c = y(i)* sin(2*pi)
                  > next i
                  >
                  >
                  >
                  >
                  I am not entirely sure what you want to do, since multiplying by sin( 2
                  PI) is to multiply by zero!

                  However the attached might give you ideas...
                  it reads your data, plots them and a modified y value in a graphicbox...

                  ' Data display and scale

                  nomainwin

                  WindowWidth =600
                  WindowHeight =550

                  graphicbox #w.g, 10, 10, 550, 450

                  open "Show data" for window as #w

                  #w.g, "down"

                  dim x( 300), y( 300), modifiedy( 300)

                  for i =0 to 225
                  read a: x( i) =a
                  read a: y( i) =a
                  modifiedy( i) =y( i) *sin( i *2 *3.14159 /360)
                  print #w.g, "color black ; set "; x( i)/225*550; " "; y( i)
                  /50000*450
                  print #w.g, "color red ; set "; x( i)/225*550; " "; modifiedy( i)
                  /50000*450
                  next i

                  wait
                  end
                  'mx =max(

                  Data 0,4113
                  data 1,4155
                  data 2,4189
                  data 3,4170
                  data 4,4086
                  data 5,4033
                  data 6,4094
                  data 7,4194
                  data 8,4199
                  data 9,4085
                  data 10,4008
                  data 11,4104
                  data 12,4275
                  data 13,4347
                  data 14,4302
                  data 15,4229
                  data 16,4164
                  data 17,4098
                  data 18,4098
                  data 19,4199
                  data 20,4293
                  data 21,4266
                  data 22,4172
                  data 23,4150
                  data 24,4230
                  data 25,4352
                  data 26,4495
                  data 27,4665
                  data 28,4757
                  data 29,4704
                  data 30,4635
                  data 31,4694
                  data 32,4843
                  data 33,4961
                  data 34,4994
                  data 35,5021
                  data 36,5134
                  data 37,5318
                  data 38,5463
                  data 39,5506
                  data 40,5522
                  data 41,5599
                  data 42,5728
                  data 43,5831
                  data 44,5861
                  data 45,5866
                  data 46,5905
                  data 47,5972
                  data 48,6038
                  data 49,6066
                  data 50,6099
                  data 51,6239
                  data 52,6510
                  data 53,6742
                  data 54,6806
                  data 55,6793
                  data 56,6829
                  data 57,6920
                  data 58,7016
                  data 59,7089
                  data 60,7155
                  data 61,7242
                  data 62,7372
                  data 63,7473
                  data 64,7456
                  data 65,7371
                  data 66,7395
                  data 67,7583
                  data 68,7792
                  data 69,7910
                  data 70,7979
                  data 71,7993
                  data 72,7919
                  data 73,7838
                  data 74,7845
                  data 75,7911
                  data 76,7988
                  data 77,8074
                  data 78,8159
                  data 79,8216
                  data 80,8251
                  data 81,8264
                  data 82,8246
                  data 83,8213
                  data 84,8186
                  data 85,8161
                  data 86,8132
                  data 87,8085
                  data 88,8039
                  data 89,8014
                  data 90,7995
                  data 91,8055
                  data 92,8271
                  data 93,8555
                  data 94,8757
                  data 95,8896
                  data 96,8978
                  data 97,8962
                  data 98,8898
                  data 99,8927
                  data 100,9062
                  data 101,9202
                  data 102,9270
                  data 103,9316
                  data 104,9430
                  data 105,9624
                  data 106,9842
                  data 107,10033
                  data 108,10227
                  data 109,10506
                  data 110,10913
                  data 111,11324
                  data 112,11601
                  data 113,11808
                  data 114,12138
                  data 115,12660
                  data 116,13226
                  data 117,13678
                  data 118,14071
                  data 119,14643
                  data 120,15477
                  data 121,16438
                  data 122,17411
                  data 123,18425
                  data 124,19553
                  data 125,20778
                  data 126,22155
                  data 127,23845
                  data 128,25853
                  data 129,27666
                  data 130,28990
                  data 131,30162
                  data 132,31551
                  data 133,33104
                  data 134,34663
                  data 135,36198
                  data 136,37699
                  data 137,39065
                  data 138,40300
                  data 139,41469
                  data 140,42553
                  data 141,43606
                  data 142,44846
                  data 143,46342
                  data 144,47683
                  data 145,48634
                  data 146,49302
                  data 147,49603
                  data 148,49478
                  data 149,49159
                  data 150,48831
                  data 151,48397
                  data 152,47785
                  data 153,47109
                  data 154,46016
                  data 155,44096
                  data 156,41551
                  data 157,38853
                  data 158,35986
                  data 159,33035
                  data 160,30139
                  data 161,27252
                  data 162,24532
                  data 163,22011
                  data 164,19647
                  data 165,17435
                  data 166,15377
                  data 167,13452
                  data 168,11631
                  data 169,9967
                  data 170,8524
                  data 171,7287
                  data 172,6233
                  data 173,5385
                  data 174,4693
                  data 175,4075
                  data 176,3550
                  data 177,3115
                  data 178,2783
                  data 179,2530
                  data 180,2307
                  data 181,2120
                  data 182,1979
                  data 183,1901
                  data 184,1861
                  data 185,1802
                  data 186,1724
                  data 187,1654
                  data 188,1604
                  data 189,1568
                  data 190,1547
                  data 191,1547
                  data 192,1547
                  data 193,1532
                  data 194,1509
                  data 195,1483
                  data 196,1452
                  data 197,1419
                  data 198,1379
                  data 199,1339
                  data 200,1327
                  data 201,1363
                  data 202,1395
                  data 203,1373
                  data 204,1317
                  data 205,1280
                  data 206,1263
                  data 207,1269
                  data 208,1327
                  data 209,1428
                  data 210,1481
                  data 211,1453
                  data 212,1396
                  data 213,1351
                  data 214,1305
                  data 215,1277
                  data 216,1275
                  data 217,1287
                  data 218,1301
                  data 219,1323
                  data 220,1332
                  data 221,1309
                  data 222,1278
                  data 223,1264
                  data 224,1263
                  data 225,1304
                • Eberhardt Friedrich
                  Dear John Thanks for your help. In the sinusoidal function i have anothers terms to multiply 2*pi, is only an example. I have a question. You write: read a:
                  Message 8 of 18 , Feb 2, 2006
                    Dear John
                    Thanks for your help. In the sinusoidal function i have anothers terms to multiply 2*pi, is only an example.

                    I have a question. You write:

                    read a: x(i)=a
                    read a: y(i)=a

                    and below
                    Data x1,y1
                    Data x2, y2 ... etc

                    But i dont understand what you put a: x(i) = a and y(i)=a. Sorry con u explain me these?

                    thanks very much
                    Josue

                    John Fisher <taunton@...> escribió:
                    Eberhardt Friedrich wrote:

                    >Greetings, i have another question, in the plotting program that i attach i read a data to plott. When i read the program automatic make and array for these data.
                    >
                    > I want to multiplicate each y value bye a sinuidal function. How can i do these?
                    >
                    > For example for i = 1 to n (number of xy pair)
                    > c = y(i)* sin(2*pi)
                    > next i
                    >
                    >
                    >
                    >
                    I am not entirely sure what you want to do, since multiplying by sin( 2
                    PI) is to multiply by zero!

                    However the attached might give you ideas...
                    it reads your data, plots them and a modified y value in a graphicbox...

                    ' Data display and scale

                    nomainwin

                    WindowWidth =600
                    WindowHeight =550

                    graphicbox #w.g, 10, 10, 550, 450

                    open "Show data" for window as #w

                    #w.g, "down"

                    dim x( 300), y( 300), modifiedy( 300)

                    for i =0 to 225
                    read a: x( i) =a
                    read a: y( i) =a
                    modifiedy( i) =y( i) *sin( i *2 *3.14159 /360)
                    print #w.g, "color black ; set "; x( i)/225*550; " "; y( i)
                    /50000*450
                    print #w.g, "color red ; set "; x( i)/225*550; " "; modifiedy( i)
                    /50000*450
                    next i

                    wait
                    end
                    'mx =max(

                    Data 0,4113
                    data 1,4155
                    data 2,4189
                    data 3,4170
                    data 4,4086
                    data 5,4033
                    data 6,4094
                    data 7,4194
                    data 8,4199
                    data 9,4085
                    data 10,4008
                    data 11,4104
                    data 12,4275
                    data 13,4347
                    data 14,4302
                    data 15,4229
                    data 16,4164
                    data 17,4098
                    data 18,4098
                    data 19,4199
                    data 20,4293
                    data 21,4266
                    data 22,4172
                    data 23,4150
                    data 24,4230
                    data 25,4352
                    data 26,4495
                    data 27,4665
                    data 28,4757
                    data 29,4704
                    data 30,4635
                    data 31,4694
                    data 32,4843
                    data 33,4961
                    data 34,4994
                    data 35,5021
                    data 36,5134
                    data 37,5318
                    data 38,5463
                    data 39,5506
                    data 40,5522
                    data 41,5599
                    data 42,5728
                    data 43,5831
                    data 44,5861
                    data 45,5866
                    data 46,5905
                    data 47,5972
                    data 48,6038
                    data 49,6066
                    data 50,6099
                    data 51,6239
                    data 52,6510
                    data 53,6742
                    data 54,6806
                    data 55,6793
                    data 56,6829
                    data 57,6920
                    data 58,7016
                    data 59,7089
                    data 60,7155
                    data 61,7242
                    data 62,7372
                    data 63,7473
                    data 64,7456
                    data 65,7371
                    data 66,7395
                    data 67,7583
                    data 68,7792
                    data 69,7910
                    data 70,7979
                    data 71,7993
                    data 72,7919
                    data 73,7838
                    data 74,7845
                    data 75,7911
                    data 76,7988
                    data 77,8074
                    data 78,8159
                    data 79,8216
                    data 80,8251
                    data 81,8264
                    data 82,8246
                    data 83,8213
                    data 84,8186
                    data 85,8161
                    data 86,8132
                    data 87,8085
                    data 88,8039
                    data 89,8014
                    data 90,7995
                    data 91,8055
                    data 92,8271
                    data 93,8555
                    data 94,8757
                    data 95,8896
                    data 96,8978
                    data 97,8962
                    data 98,8898
                    data 99,8927
                    data 100,9062
                    data 101,9202
                    data 102,9270
                    data 103,9316
                    data 104,9430
                    data 105,9624
                    data 106,9842
                    data 107,10033
                    data 108,10227
                    data 109,10506
                    data 110,10913
                    data 111,11324
                    data 112,11601
                    data 113,11808
                    data 114,12138
                    data 115,12660
                    data 116,13226
                    data 117,13678
                    data 118,14071
                    data 119,14643
                    data 120,15477
                    data 121,16438
                    data 122,17411
                    data 123,18425
                    data 124,19553
                    data 125,20778
                    data 126,22155
                    data 127,23845
                    data 128,25853
                    data 129,27666
                    data 130,28990
                    data 131,30162
                    data 132,31551
                    data 133,33104
                    data 134,34663
                    data 135,36198
                    data 136,37699
                    data 137,39065
                    data 138,40300
                    data 139,41469
                    data 140,42553
                    data 141,43606
                    data 142,44846
                    data 143,46342
                    data 144,47683
                    data 145,48634
                    data 146,49302
                    data 147,49603
                    data 148,49478
                    data 149,49159
                    data 150,48831
                    data 151,48397
                    data 152,47785
                    data 153,47109
                    data 154,46016
                    data 155,44096
                    data 156,41551
                    data 157,38853
                    data 158,35986
                    data 159,33035
                    data 160,30139
                    data 161,27252
                    data 162,24532
                    data 163,22011
                    data 164,19647
                    data 165,17435
                    data 166,15377
                    data 167,13452
                    data 168,11631
                    data 169,9967
                    data 170,8524
                    data 171,7287
                    data 172,6233
                    data 173,5385
                    data 174,4693
                    data 175,4075
                    data 176,3550
                    data 177,3115
                    data 178,2783
                    data 179,2530
                    data 180,2307
                    data 181,2120
                    data 182,1979
                    data 183,1901
                    data 184,1861
                    data 185,1802
                    data 186,1724
                    data 187,1654
                    data 188,1604
                    data 189,1568
                    data 190,1547
                    data 191,1547
                    data 192,1547
                    data 193,1532
                    data 194,1509
                    data 195,1483
                    data 196,1452
                    data 197,1419
                    data 198,1379
                    data 199,1339
                    data 200,1327
                    data 201,1363
                    data 202,1395
                    data 203,1373
                    data 204,1317
                    data 205,1280
                    data 206,1263
                    data 207,1269
                    data 208,1327
                    data 209,1428
                    data 210,1481
                    data 211,1453
                    data 212,1396
                    data 213,1351
                    data 214,1305
                    data 215,1277
                    data 216,1275
                    data 217,1287
                    data 218,1301
                    data 219,1323
                    data 220,1332
                    data 221,1309
                    data 222,1278
                    data 223,1264
                    data 224,1263
                    data 225,1304





                    ---------------------------------
                    YAHOO! GROUPS LINKS


                    Visit your group "libertybasic" on the web.

                    To unsubscribe from this group, send an email to:
                    libertybasic-unsubscribe@yahoogroups.com

                    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                    ---------------------------------




                    __________________________________________________
                    Correo Yahoo!
                    Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
                    Regístrate ya - http://correo.espanol.yahoo.com/

                    [Non-text portions of this message have been removed]
                  • John Fisher
                    ... A quirk (strange way of doing things) in LB is that rather than read straight into an array like x( ) you first READ data into a dummy variable ( here I
                    Message 9 of 18 , Feb 2, 2006
                      Eberhardt Friedrich wrote:

                      >Dear John
                      > Thanks for your help. In the sinusoidal function i have anothers terms to multiply 2*pi, is only an example.
                      >
                      > I have a question. You write:
                      >
                      > read a: x(i)=a
                      > read a: y(i)=a
                      >
                      > and below
                      > Data x1,y1
                      > Data x2, y2 ... etc
                      >
                      >But i dont understand what you put a: x(i) = a and y(i)=a. Sorry con u explain me these?
                      >
                      >
                      >
                      >
                      A quirk (strange way of doing things) in LB is that rather than read
                      straight into an array like x( ) you first READ data into a 'dummy
                      variable' ( here I used a) and then assign the value of a to the array
                      term a()
                      So say it READs a to be 123
                      it then sets whichever x( ) term we are currently on to that value.
                      a is reused until all the array is full, then has no further use.

                      PS best wishes- not sure of your nationality so buena suerte and auf
                      wiedersehen!
                    • Eberhardt Friedrich
                      Thanks Stefan stefanhes escribió: --- In libertybasic@yahoogroups.com, Eberhardt Friedrich ... 225 columns. I have to sum all
                      Message 10 of 18 , Feb 3, 2006
                        Thanks Stefan

                        stefanhes <sjmhesseling@...> escribió: --- In libertybasic@yahoogroups.com, Eberhardt Friedrich
                        <ebjofrie@y...> wrote:
                        >
                        > Greetings,
                        >
                        > I make some operations and the result is a matrix of 225 row by
                        225 columns. I have to sum all terms in a column and after i have to
                        get a matrix of 1 row by 225 column.
                        >
                        > How can i do these in liberty basic?
                        > thanks
                        > Josue
                        >
                        dim M(256,256)
                        dim Result(256)
                        for c=1 to 255
                        sum=0
                        for r=1 to 255
                        sum=sum+M(c,r)
                        next r
                        Result(c)=sum
                        next c

                        Stefan Hesseling






                        ---------------------------------
                        YAHOO! GROUPS LINKS


                        Visit your group "libertybasic" on the web.

                        To unsubscribe from this group, send an email to:
                        libertybasic-unsubscribe@yahoogroups.com

                        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                        ---------------------------------




                        __________________________________________________
                        Correo Yahoo!
                        Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
                        Regístrate ya - http://correo.espanol.yahoo.com/

                        [Non-text portions of this message have been removed]
                      • carlgundel
                        ... array ... This quirk will not exist in LB5. -Carl
                        Message 11 of 18 , Feb 4, 2006
                          --- In libertybasic@yahoogroups.com, John Fisher <taunton@...> wrote:
                          > A quirk (strange way of doing things) in LB is that rather than read
                          > straight into an array like x( ) you first READ data into a 'dummy
                          > variable' ( here I used a) and then assign the value of a to the
                          array
                          > term a()

                          This quirk will not exist in LB5.

                          -Carl
                        • John Fisher
                          I just LOVE your responsiveness Carl! That s what makes using LB so rewarding. Happy 2006...
                          Message 12 of 18 , Feb 5, 2006
                            I just LOVE your responsiveness Carl!
                            That's what makes using LB so rewarding.
                            Happy 2006...

                            >This quirk will not exist in LB5.
                            >
                            >-Carl
                            >
                            >
                            >
                          • Kevin
                            When exactly will LB 5 be released, and what features are planned for it?
                            Message 13 of 18 , Feb 5, 2006
                              When exactly will LB 5 be released, and what features are planned for it?

                              :)

                              --- In libertybasic@yahoogroups.com, John Fisher <taunton@...> wrote:
                              >
                              > I just LOVE your responsiveness Carl!
                              > That's what makes using LB so rewarding.
                              > Happy 2006...
                              >
                              > >This quirk will not exist in LB5.
                              > >
                              > >-Carl
                              > >
                              > >
                              > >
                              >
                            • William E. Lopez
                              Info re LB 5 can be found here: http://libertybasic.conforums.com/index.cgi?board=lb5 [Non-text portions of this message have been removed]
                              Message 14 of 18 , Feb 5, 2006
                                Info re LB 5 can be found here: http://libertybasic.conforums.com/index.cgi?board=lb5



                                [Non-text portions of this message have been removed]
                              Your message has been successfully submitted and would be delivered to recipients shortly.