bugGNU Octave - Bugs: bug #51583, eig(L,'vector') fails on Octave -...

 
 

bug #51583: eig(L,'vector') fails on Octave - works on Matlab

Submitted by:  Tom <madtom1999>
Submitted on:  Wed 26 Jul 2017 11:50:48 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 26 Jul 2017 11:07:50 PM UTC, comment #1:

Happily this has already been fixed. You report using Octave version 4.0.0 which is deprecated and no longer supported. Please use the latest stable version which is 4.2.1. I tried your sample code in 4.0.0 where it does fail, and in 4.2.1 where it executes cleanly.

Rik <rik5>
Project Administrator
Wed 26 Jul 2017 11:50:48 AM UTC, original submission:

The following code works fine on Matlab but fails on Octave:
-----------------------------------------------------------
% Form the matrix of weights based on the graph
N = 11;
W = zeros(N,N);
W(1,2) = 0.5;
W(1,5) = 0.5;
W(2,3) = 0.6;
W(3, 4) = 0.6;
W(4,5) = 0.6;
W(4,6) = 0.1;
W(5, 7) = 0.2;
W(6,7) = 0.8;
W(7,8) = 0.4;
W(8,9) = 0.5;
W(9,10) = 0.7;
W(10,11) = 0.7;
W(11,6) = 0.8;
% Since it's undirected add on the transpose to assign the edges in the
% other direction
W = W + W';
% Examine the structure of the weights matrix
spy(W)
% Form the degree matrix, D
D = diag(sum(W,2));
% Form the Laplacian
L = D - W;
% Find the eigenvectors and eigenvalues
[evec,eval] = eig(L, 'vector');
error: eig: wrong type argument 'sq_string'
---------------------------------------------
using [evec,eval] = eig(L, "vector");
error: eig: wrong type argument 'string'
---------------------------------------------
Tom

Tom <madtom1999>

 

(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 madtom1999 (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
    Wed 26 Jul 2017 11:07:50 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1