bugGNU Octave - Bugs: bug #31733, error: ppval: expects a pp...

 
 

bug #31733: error: ppval: expects a pp structure

Submitted by:  Rick T <ratulloch>
Submitted on:  Mon 22 Nov 2010 08:21:01 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Rick TullochOpen/Closed: Closed
Release: 3.2.3Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 22 Nov 2010 09:49:10 PM UTC, comment #1:

Use 'help ppval' to get this

So, you need to reverse your argument list.

Matlab uses the same convention so I'm not sure what it was actually calculating. It would be better for Matlab to throw an error as well if the function is not used correctly.

Rik <rik5>
Project Administrator
Mon 22 Nov 2010 08:21:01 PM UTC, original submission:

error: ppval: expects a pp structure

Greetings All
I run a simple script to test piecewise in matlab and octave
It works in matlab

clear,clc
tic
coefs=[3,-5,1;0,3,-2];
breaks=[0 5 10];
p1=mkpp(breaks,coefs);
xx=linspace(-3,12);
yy=ppval(xx,p1);
plot(xx,yy);

But when the same script is run in octave 3.2.3 I get this error
error: ppval: expects a pp structure
error: called from:
error: /usr/share/octave/3.2.3/m/polynomial/ppval.m at line 34, column 5

Does anyone have a work around?

aloha

Rick T <ratulloch>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by ratulloch (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 22 Nov 2010 09:49:10 PM UTCrik5StatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1