bugGNU Octave - Bugs: bug #44340, conv function will work from...

 
 

bug #44340: conv function will work from command line, not in script

Submitter:  Clyde Shappee <clyde73>
Submitted:  Sun 22 Feb 2015 03:51:47 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Works For Me Assigned to:  None
Originator Name:  Clyde73 Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 22 Feb 2015 05:59:43 PM UTC, comment #5: 

Ok, silly me.  I exited octave and navigated to my script folder.  Restarted and all is well now.  f.m runs to my hearts content.

Thanks to all for patience.

Clyde

Clyde Shappee <clyde73>
Sun 22 Feb 2015 05:40:55 PM UTC, comment #4: 

Is the octavescripts directory still in your load path? What does


which filter


show? If it's still finding your filter.m script instead of the filter.m function file, then you will still get the same error.

Mike Miller <mtmiller>
Group Member
Sun 22 Feb 2015 05:39:20 PM UTC, comment #3: 

Ok, so I movedd my script to another folder (octavescritps) where I normally work  out of and still see the problem.  I am sorry to be bothering  the community with such a newb problem as I am no stranger to Octave... I have to be overlooking something so obvious.


Clyde Shappee <clyde73>
Sun 22 Feb 2015 04:22:32 PM UTC, comment #2: 

The error message clearly shows that you have a script file in your Octave load path /home/clyde/octave/filter.m. This is overriding the function file filter.m provided by Octave. Please remove or rename your script file to not conflict with Octave names and try again.

Mike Miller <mtmiller>
Group Member
Sun 22 Feb 2015 04:14:32 PM UTC, comment #1: 

I can't reproduce this.

I created a file f.m and put 5 lines of code in it.


octave-3.8.2 -f

octave:1> which f
'f' is a script from the file /home/rik/downloads/f.m
octave:2> f
octave:3> f
octave:4> f
octave:5> whos
Variables in the current scope:

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  =====
        a           1x6                         48  double
        b           1x6                         48  double
        r           1x11                        88  double

Total is 23 elements using 184 bytes



Rik <rik5>
Group administrator
Sun 22 Feb 2015 03:51:47 PM UTC, original submission:  


% f.m
%   5  4   3  2  1  0
a=[16  0  -2  0  5  0];
b=a;
r=conv (a,b);

Results in this message

error: invalid use of script /home/clyde/octave/filter.m in index expression
error: called from:
error:   /usr/local/share/octave/3.6.3/m/polynomial/conv.m at line 80, column 5
error:   /home/clyde/octave/f.m at line 5, column 2


But if I type the commands from the prompt after a clean start it will work one time. A second try fails as well.

Clyde Shappee <clyde73>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by clyde73 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-22 mtmiller Open/ClosedOpen Closed
    2015-02-22 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code