help-octave
[Top][All Lists]
Advanced

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

Re: XLSread issue: works in command window but not form m file


From: Harm Ubbens
Subject: Re: XLSread issue: works in command window but not form m file
Date: Fri, 10 Jan 2020 12:02:11 +0100

Dear Dmitri,

Thank you for your reply on my issue. I have changed all the generic names but still encounter the same problem: I can load the excel file from the command window but not from an m-file with the same commands. 
When I did run the m-file the 'current directory changes' and then it does not work properly anymore. Whenever I launch the m-file from the current start-up directory (C:\Users\harm_) it does work. So changing current directory gives the error. 

Do you have an idea how to solve this?

Thanks,
Harm

Op do 9 jan. 2020 om 15:10 schreef Dmitri A. Sergatskov <address@hidden>:


On Thu, Jan 9, 2020 at 8:39 AM Harm Ubbens <address@hidden> wrote:
Dear reader,

When I use xlsread from the command window in Octave 5.1.0 it works properly, however when I use the same commands from within an m-file it does not work and gives and out of bound error (see screenshots in attachment).

What can this problem be and how can I solve this?

Don't ever call your programs (in octave or otherwise) "test" or anything similarly generic.
Call it "test1" if you must.

 

Thanks,
Harm


Dmitri.
--

reply via email to

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