bugGNU Octave - Bugs: bug #45314, [octave forge] (control) Matlab...

 
 

bug #45314: [octave forge] (control) Matlab Incompatibility with invalid subscripted assignment type

Submitter:  None
Submitted:  Sat 13 Jun 2015 08:23:30 AM UTC
   
 
Category:  Octave Package Severity:  1 - Wish
Priority:  3 - Low Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Thomas Dean Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * other
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 13 Jul 2015 12:50:22 PM UTC, comment #9: 

Ok then, reopening with a low priority :)

Mike Miller <mtmiller>
Group Member
Mon 13 Jul 2015 06:02:20 AM UTC, comment #8: 

"Won't fix" sounds a bit harsh to me. Let's put it this way: implementing the array feature is not on top of my priority list.

Lukas Reichlin <paramaniac>
Wed 17 Jun 2015 03:01:39 PM UTC, comment #7: 

Closing bug as won't fix per comment #3.

Mike Miller <mtmiller>
Group Member
Sun 14 Jun 2015 07:38:52 PM UTC, comment #6: 

Just for the record, I attached the file "tomdean.m" which contains my solution from the Octave mailing list.


(file #34217)

Lukas Reichlin <paramaniac>
Sun 14 Jun 2015 06:52:45 PM UTC, comment #5: 

Yes, there are two examples included in the control package:

Anderson.m
MDSSystem.m


Lukas Reichlin <paramaniac>
Sun 14 Jun 2015 03:21:59 PM UTC, comment #4: 

Is there an example of how to do this with cells?
Since this is an incompatibility with matlab, we should have a clear example of how to convert to cells.

Doug Stewart <dastew>
Sun 14 Jun 2015 03:05:44 PM UTC, comment #3: 

Arrays of LTI systems are not supported. As a workaround, one can use cells.

Lukas Reichlin <paramaniac>
Sun 14 Jun 2015 12:00:14 AM UTC, comment #2: 

adding maintainer to CC list

Carnë Draug <carandraug>
Group Member
Sat 13 Jun 2015 01:27:06 PM UTC, comment #1: 

Using the attached script, mail.m, I get the following error much earlier:


warning: the 'tf' function belongs to the control package from Octave Forge
which seems to not be installed in your system.

Please read `http://www.octave.org/missing.html' to learn how you can
contribute missing functionality.
warning: called from
    __unimplemented__ at line 524 column 5
    mail at line 4 column 3
error: 'tf' undefined near line 4 column 5
error: called from
    mail at line 4 column 3


The line in question is


s = tf('s');


The line reported to have an error


b_array(:,:,n) = tf([K*R2*C(n) K],[K*R2*C(n) 1]);


also involves the tf() function from the control package.

I am re-assingning the bug to Octave-Forge since it appears to involve the control package rather than core Octave.

Rik <rik5>
Group administrator
Sat 13 Jun 2015 08:23:30 AM UTC, original submission:  

From a matlab(?) script found on the web,

octave:306> ###########################################
octave:306> ## this causes an error
octave:306> K = R1/(R1+R2);
octave:307> C = [1:.2:3]*1e-12;
octave:308> for n = 1:length(C)

>     b_array(:,:,n) = tf([K*R2*C(n) K],[K*R2*C(n) 1]);
> end

error: lti: subsasgn: invalid subscripted assignment type
error: called from
    subsasgn at line 41 column 7
error: assignment failed, or no method for '<unknown type> = class'
octave:308> ###########################################

octave:309> version
ans = 4.1.0+

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34217:  tomdean.m added by paramaniac (530B - application/octet-stream)
file #34211:  mail.m added by None (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by paramaniac (Posted a comment)
  • -email is unavailable- added by carandraug (Lukas Reichlin - maintainer of the control package)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 15 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-13 jwe SummaryControl Package Matlab Incompatibility with invalid subscripted assignment type [octave forge] (control) Matlab Incompatibility with invalid subscripted assignment type
    2015-07-13 mtmiller Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        StatusWont Fix Confirmed
        Open/ClosedClosed Open
        Release4.0.0 other
        Operating SystemGNU/Linux Any
    2015-06-17 mtmiller StatusNone Wont Fix
        Open/ClosedOpen Closed
    2015-06-14 paramaniac Attached File- Added tomdean.m, #34217
    2015-06-13 carandraug Carbon-Copy- Added -email is unavailable-
    2015-06-13 rik5 Carbon-CopyRemoved 72865 -
    2015-06-13 rik5 CategoryInterpreter Octave Package
        SummaryMatlab Incompatibility invalid subscripted assignment type Control Package Matlab Incompatibility with invalid subscripted assignment type
    2015-06-13 None Attached File- Added mail.m, #34211

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code