[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65893] Polyfit result depends on number of ou
From: |
Mark van Rossum |
Subject: |
[Octave-bug-tracker] [bug #65893] Polyfit result depends on number of output arguments |
Date: |
Wed, 19 Jun 2024 07:56:26 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?65893>
Summary: Polyfit result depends on number of output arguments
Group: GNU Octave
Submitter: cosine
Submitted: Wed 19 Jun 2024 11:56:25 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 8.4.0
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 19 Jun 2024 11:56:25 AM UTC By: Mark van Rossum <cosine>
Hi
> x=0:3; y= 2*x+3;
> p=polyfit(x,y,1)
p =
2 3
This is correct.
But now when called asking for more return arguments:
> [p,q,r]=polyfit(x,y,1)
p =
2.5820 6.0000
....
This is incorrect.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65893>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65893] Polyfit result depends on number of output arguments,
Mark van Rossum <=