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

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

[Octave-bug-tracker] [bug #60018] residmin_stat gives error when some va


From: anonymous
Subject: [Octave-bug-tracker] [bug #60018] residmin_stat gives error when some variables are flagged as fixed. The function worked properly in 5.1.0.
Date: Sun, 7 Feb 2021 09:25:27 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36

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

                 Summary: residmin_stat gives error when some variables are
flagged as fixed. The function worked properly in 5.1.0.
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 07 Feb 2021 02:25:25 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Daniel
        Originator Email: sdannyp@campus.technion.ac.il
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

#Input:
if (~exist('nonlin_residmin', 'file'))
  pkg load optim;
endif

x = [1, 2, 3, 4]';
y = [5.2, 6.9, 8.6, 11.5]';
f = @(x, a) a(1)*x + a(2);
fixed = [false, true]';
p0 = [1, 3]';
r = @(a) (y - f(x, a));
fitparams = nonlin_residmin(r, p0, optimset('fixed', fixed));
stat = residmin_stat(r, fitparams, struct('objf_type', 'wls', 'ret_covp',
true, 'fixed', fixed));

#Output
error: can't perform indexed assignment for function handle type
error: called from
    __residmin_stat__ at line 369 column 14
    residmin_stat at line 76 column 7
    fitting_test_610 at line 12 column 6




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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