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

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

[Octave-bug-tracker] [bug #33526] legendre Matlab compatibility issue


From: Arnaud Delorme
Subject: [Octave-bug-tracker] [bug #33526] legendre Matlab compatibility issue
Date: Sat, 11 Jun 2011 15:29:24 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

URL:
  <http://savannah.gnu.org/bugs/?33526>

                 Summary: legendre Matlab compatibility issue
                 Project: GNU Octave
            Submitted by: arnodelorme
            Submitted on: Sat 11 Jun 2011 03:29:23 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.0
        Operating System: Mac OS

    _______________________________________________________

Details:

legendre(2, [0.5 0.5; 0.5 0.5]); % works in Matlab but not in Octave 

A simple fix below

function L = legendre_fix(n, Ei)

    for icol = 1:size(EI,2)
        tmpL = legendre(n,EI(:,icol));
        if icol == 1, L = zeros([ size(tmpL) size(EI,2)]); end;
        L(:,:,icol) = tmpL;
    end;





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33526>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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