bugGNU Octave - Bugs: bug #56890, call to plot function gives error...

 
 

bug #56890: call to plot function gives error message

Submitter:  None
Submitted:  Sat 14 Sep 2019 02:06:22 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 14 Sep 2019 06:04:49 PM UTC, comment #2: 

This doesn't look like valid code.  The '%' character is used to start a comment so the parser sees "x=-" and then nothing through the end of the line.

Try


x=-pi:0.05:pi;
plot (x, sin (x))



Rik <rik5>
Group administrator
Sat 14 Sep 2019 05:32:36 PM UTC, comment #1: 

You may want to try:


x=-%pi:0.05:%pi;
plot(x, sin(x))

Notice the ) which closes the plot(...)

Michael Godfrey <godfrey>
Group Member
Sat 14 Sep 2019 02:06:22 PM UTC, original submission:  

Hi, I have just installed the recommended binary installer for Octave on my Windows 10 Laptop, and tested the system with some commands in the command window,
x=-%pi:0.05:%pi;
plot(x, sin(x)

The last command gives an error message saying that the call to the plot function is invalid. I found a comment on this in the www jungle saying tha the system could not find a user-defined plot.m file in my working directory, which is true of course.I copied the above demo example from somwhere on yhe Gnu Octave web pages.
is it so that there is some system-internal plot function that overrides user-defined functions, if so, how do I make a call to one of these functions?

Regards,
TG

Anonymous

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  •  

    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
    2019-09-14 rik5 StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code