From bug-octave-request at bevo dot che dot wisc dot edu Thu Sep 11 12:48:07 1997 Subject: Re: cannot enter a large matric - line size limitations? From: sshteingold at cctrading dot com To: Cc: Date: Thu, 11 Sep 97 13:47:43 -0500 mx.m: --------------------- a=[[1176.6727, 237.76727, 13.9138365, 1.1117959, 292.83942, 891.596, 1001.67004, 1257.4712, 2610.2913, 48.436954]; [237.76727, 49.238163, 2.7816741, 0.23123477, 59.467945, 180.76357, 203.16882, 259.65863, 537.1962, 9.821564]; [13.9138365, 2.7816741, 0.16662543, 0.01298963, 3.4592433, 10.542224, 11.841578, 14.796204, 30.697283, 0.5724862]; [1.1117959, 0.23123477, 0.01298963, 0.0010890318, 0.2784578, 0.84615916, 0.9511309, 1.2208148, 2.5233095, 0.045971695]; [292.83942, 59.467945, 3.4592433, 0.2784578, 73.00998, 222.19884, 249.65176, 314.6108, 652.4124, 12.07137]; [891.596, 180.76357, 10.542224, 0.84615916, 222.19884, 676.4013, 759.94995, 956.4994, 1983.6722, 36.744934]; [1001.67004, 203.16882, 11.841578, 0.9511309, 249.65176, 759.94995, 853.83026, 1075.0208, 2229.3926, 41.28362]; [1257.4712, 259.65863, 14.796204, 1.2208148, 314.6108, 956.4994, 1075.0208, 1377.3235, 2841.9531, 51.951317]; [2610.2913, 537.1962, 30.697283, 2.5233095, 652.4124, 1983.6722, 2229.3926, 2841.9531, 5888.0137, 107.7646]; [48.436954, 9.821564, 0.5724862, 0.045971695, 12.07137, 36.744934, 41.28362, 51.951317, 107.7646, 1.9963508]]; b=[144526.45, 29639.795, 1711.8384, 139.1426, 36130.94, 109876.51, 123477.13, 157854.27, 325455.22, 5965.9287]; # [1176.6727, 237.76727, 13.9138365, 1.1117959, 292.83942, 891.596, \ # 1001.67004, 1257.4712, 2610.2913, 48.436954; # 237.76727, 49.238163, 2.7816741, 0.23123477, 59.467945, 180.76357, \ # 203.16882, 259.65863, 537.1962, 9.821564; # 13.9138365, 2.7816741, 0.16662543, 0.01298963, 3.4592433, 10.542224, \ # 11.841578, 14.796204, 30.697283, 0.5724862; # 1.1117959, 0.23123477, 0.01298963, 0.0010890318, 0.2784578, \ # 0.84615916, 0.9511309, 1.2208148, 2.5233095, 0.045971695; # 292.83942, 59.467945, 3.4592433, 0.2784578, 73.00998, 222.19884, \ # 249.65176, 314.6108, 652.4124, 12.07137; # 891.596, 180.76357, 10.542224, 0.84615916, 222.19884, 676.4013, \ # 759.94995, 956.4994, 1983.6722, 36.744934; # 1001.67004, 203.16882, 11.841578, 0.9511309, 249.65176, 759.94995, \ # 853.83026, 1075.0208, 2229.3926, 41.28362; # 1257.4712, 259.65863, 14.796204, 1.2208148, 314.6108, 956.4994, \ # 1075.0208, 1377.3235, 2841.9531, 51.951317; # 2610.2913, 537.1962, 30.697283, 2.5233095, 652.4124, 1983.6722, \ # 2229.3926, 2841.9531, 5888.0137, 107.7646; # 48.436954, 9.821564, 0.5724862, 0.045971695, 12.07137, 36.744934, \ # 41.28362, 51.951317, 107.7646, 1.9963508] -------------------------------------------------------------------- octave.exe:4> load mx.m error: load: mx.m: inconsistent number of columns near line 16 error: load: unable to extract matrix size from file `mx.m' error: evaluating index expression near line 4, column 1 octave.exe:4> ls cygwin: Cygwin32: Catastrophic fail - unable to Create pinfo_mutex octave.exe:8> a error: `a' undefined near line 8 column 1 error: evaluating expression near line 8, column 1 <1.596, 1001.67004, 1257.4712, 2610.2913, 48.436954]; <80.76357, 203.16882, 259.65863, 537.1962, 9.821564]; <542224, 11.841578, 14.796204, 30.697283, 0.5724862]; <5916, 0.9511309, 1.2208148, 2.5233095, 0.045971695]; <222.19884, 249.65176, 314.6108, 652.4124, 12.07137]; <76.4013, 759.94995, 956.4994, 1983.6722, 36.744934]; <9.94995, 853.83026, 1075.0208, 2229.3926, 41.28362]; <6.4994, 1075.0208, 1377.3235, 2841.9531, 51.951317]; <83.6722, 2229.3926, 2841.9531, 5888.0137, 107.7646]; <6.744934, 41.28362, 51.951317, 107.7646, 1.9963508]]; octave.exe:9> octave.exe:9> a octave.exe:10> The above is what I see on the screen. What I did was just cut and paste the a=... assignment from Emacs to the console window with Octave, at the 9th prompt (the 8th was just to check that there is no `a'). The long lines make readline do wonders.... ;-) BTW, neither ls nor dir work under NT. ______________________________ Reply Separator _________________________________ Subject: cannot enter a large matric - line size limitations? Author: "John W. Eaton" at INET Date: 1997-09-11 11:20 On 11-Sep-1997, sshteingold at cctrading dot com wrote: | I have a 10x10 matrix (in a file) and I cannot set an octave variable | to it. I can do | octave> A=[1,2,3,4,5,6,7,8,9,10;1,2,3,4,5,6,7,8,9,10; etc... | and get a 10x10 matrix, but I cannot use the actual numbers I have. | I can enter 7 lines and get a 10x7 matrix fine, and I can enter the | 8th line separately, but if I try to enter all 10 lines or just the | first 8 of them, I fail - without any error message. Octave doesn't | print anything, it just returns a prompt and A is empty (A | gives no response from octave at all!). | Apparently my numbers - ranging from 1000 to 0.001 - take up too much | space on the line? Or there are some other limitations? No, there are no such limitations built in to Octave. There may be a bug here but it is difficult to tell. Can you please send a precise test case so that someone can attempt to reproduce the problem? Thanks, jwe