bugGNU Octave - Bugs: bug #35360, margin.m error: `Ts' undefined...

 
 

bug #35360: margin.m error: `Ts' undefined near line 300 column 62 for discrete systems

Submitter:  Renato Caldas <seventhguardian>
Submitted:  Tue 24 Jan 2012 02:23:20 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Octave Forge Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Jan 2012 04:28:11 PM UTC, comment #2: 

Thanks for reporting, Renato. I fixed the problem in svn revision 9561.

Lukas Reichlin <paramaniac>
Tue 24 Jan 2012 02:27:29 PM UTC, comment #1: 

This looks like a problem with an Octave Forge package, not a bug
in Octave.  The correct place to report this problem is the
Octave Forge mailing list, octave-dev@lists.sourceforge.net.

A copy of this update to the bug report is being sent to that
list so that they are aware of it.  Please follow up there.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Tue 24 Jan 2012 02:23:20 PM UTC, original submission:  

When calling margin.m with a discrete system I get this error.

The problem is that the sampling time is retrived here:


(...)
[num, den, tsam] = tfdata (sys);
(...)


But on line 300 an attempt is made to use the undefined variable "TS":

if (continuous)
  xl_str = "Frequency [rad/s]";
else
  xl_str = sprintf ("Frequency [rad/s]     w_N = %g", pi/Ts);
endif


Changing "Ts" for "tsam" solves this:

if (continuous)
  xl_str = "Frequency [rad/s]";
else
  xl_str = sprintf ("Frequency [rad/s]     w_N = %g", pi/tsam);
endif


Renato Caldas <seventhguardian>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by paramaniac (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by jordigh
  • -email is unavailable- added by seventhguardian (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-01-24 jordigh StatusNone Octave Forge
        Open/ClosedOpen Closed
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code