[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unable to install packages into octave in Windows 7
From: |
Philip Nienhuis |
Subject: |
Re: unable to install packages into octave in Windows 7 |
Date: |
Fri, 12 May 2017 09:34:53 -0700 (PDT) |
NJank wrote
> On Fri, May 12, 2017 at 9:53 AM, ajiten <
> jahuja73@
> > wrote:
>
>> I am sorry that I did not notice the version update of the io package.
>> But,
>> still the command ' pkg load io ' seems not to work. It gave warning:
>> warning: (Automatic loading of spreadsheet I/O Java classlibs failed)
>>
>> I just exited & restarted octave again, then it works (means gives no
>> warning).
>> I request some more commands to check the working. This will improve my
>> understanding for future too.
>>
>>
> Ok, i think the IO package uses Java for some interfaces. Maybe something
> before the restart made it unable to find Java.
>
> The full function reference can be found here:
> https://octave.sourceforge.io/io/
>
> I think the thing most people want to do with this package is read/write
> Excel files. If you have any .xls or xlsx files, you could try to read one
> into Octave or to write a matrix out to a spreadsheet. There are also some
> csv->cell functions you could try.
>
> A very simple test script:
>
> pkg load io
> for idx1 = 1:10, for idx2 = 1:10, a{idx1,idx2} = eye(10)(idx1,idx2);
> endfor, endfor
> cell2csv('testout.csv',a)
>
> should create a csv file with 0's and 1's.
>
> xlswrite('testout.xlsx',a)
>
> should create a similar file as an excel file.
>
> TESTinput = xlsread('testout.xlsx')
>
> should read the file back in and assign the array to a variable Testinput
A better check would be to invoke the dedicated test script in the io
package:
test_spsh
that'll sort out the available interfaces (native (OCT), Java- and (on
Windows:) ActiveX based), runs basic tests for each interface found and
reports the results.
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/unable-to-install-packages-into-octave-in-Windows-7-tp4683258p4683316.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: unable to install packages into octave in Windows 7, (continued)
- Re: unable to install packages into octave in Windows 7, Nicholas Jankowski, 2017/05/10
- Re: unable to install packages into octave in Windows 7, ajiten, 2017/05/11
- Re: unable to install packages into octave in Windows 7, Nicholas Jankowski, 2017/05/11
- Re: unable to install packages into octave in Windows 7, Nicholas Jankowski, 2017/05/11
- Re: unable to install packages into octave in Windows 7, ajiten, 2017/05/11
- Message not available
- Message not available
- Message not available
- Re: unable to install packages into octave in Windows 7, Nicholas Jankowski, 2017/05/12
- Re: unable to install packages into octave in Windows 7, ajiten, 2017/05/12
- Re: unable to install packages into octave in Windows 7, Nicholas Jankowski, 2017/05/12
- Re: unable to install packages into octave in Windows 7, ajiten, 2017/05/12
- Re: unable to install packages into octave in Windows 7, Nicholas Jankowski, 2017/05/12
- Re: unable to install packages into octave in Windows 7,
Philip Nienhuis <=