[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35360] margin.m error: `Ts' undefined near li
From: |
Renato Caldas |
Subject: |
[Octave-bug-tracker] [bug #35360] margin.m error: `Ts' undefined near line 300 column 62 for discrete systems |
Date: |
Tue, 24 Jan 2012 14:23:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 |
URL:
<http://savannah.gnu.org/bugs/?35360>
Summary: margin.m error: `Ts' undefined near line 300 column
62 for discrete systems
Project: GNU Octave
Submitted by: seventhguardian
Submitted on: Ter 24 Jan 2012 14:23:20 GMT
Category: None
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: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35360>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35360] margin.m error: `Ts' undefined near line 300 column 62 for discrete systems,
Renato Caldas <=