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

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

[Octave-bug-tracker] [bug #56408] Error:invalid call to script even thou


From: anonymous
Subject: [Octave-bug-tracker] [bug #56408] Error:invalid call to script even though proper syntax followed
Date: Tue, 28 May 2019 19:27:12 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?56408>

                 Summary: Error:invalid call to script even though proper
syntax followed
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 28 May 2019 11:27:10 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: umar
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I was trying to load a function saved in the same working directory of the
Octave GUI. However, upon calling the script, an error message pops up.

The function, saved as costfunctionj.m, is:
J=costfunction(x,y,theta)

m=size(x,1);
predictions=x*theta;
sqrErrors=(predictions-y).^2;
J=1/(2*m)*sum(sqrErrors);

when it is called in GUI with

m=costfunctionj(x,y,theta);

the following error message shows up:

error: invalid call to script C:\Users\umara\Desktop\costfunctionj.m

I have searched for a solution everywhere but am unable to find one. It seems
this was a bug encountered in previous releases as well. Please get back to me
with the proper fix.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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