octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64366] [Octave Packages] (io) xlswrite can on


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #64366] [Octave Packages] (io) xlswrite can only save file to current directory
Date: Thu, 29 Jun 2023 15:07:40 -0400 (EDT)

Update of bug #64366 (project octave):

              Item Group:                   Other => Unexpected Error or
Warning
                  Status:                    None => Confirmed              
        Operating System:       Microsoft Windows => Any                    
                 Summary: xlswrite can only save file to current directory =>
[Octave Packages] (io) xlswrite can only save file to current directory

    _______________________________________________________

Follow-up Comment #3:

This is really odd behavior. Confirming.

On Linux, I get:


octave:1> pkg load io

octave:2> a = 10; xlswrite ("foo.xlsx", a)
ans = 1

octave:3> a = 10; xlswrite ("/tmp/foo.xlsx", a)
error: concatenation operator not implemented for 'matrix' by 'scalar struct'
operations
error: called from
    __OCT_oct2xlsx__
    __OCT_oct2spsh__ at line 79 column 16
    oct2xls
    xlswrite


The bizarre part is that I tried to cd to /tmp and then creating a foo.xlsx,
but it gave me an error, both when changing directories inside Octave and
outside it in the shell prompt!


octave:3> cd /tmp
octave:4> a = 10; xlswrite ("foo.xlsx", a)
error: concatenation operator not implemented for 'matrix' by 'scalar struct'
operations
error: called from
    __OCT_oct2xlsx__
    __OCT_oct2spsh__ at line 79 column 16
    oct2xls
    xlswrite



$ cd /tmp      ## in Bash

$ octave -q
octave:1> pkg load io
octave:2> a = 10; xlswrite ("foo.xlsx", a)
error: concatenation operator not implemented for 'matrix' by 'scalar struct'
operations
error: called from
    __OCT_oct2xlsx__
    __OCT_oct2spsh__ at line 90 column 9
    oct2xls
    xlswrite




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64366>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]