getNominal
Nominal value of uncertain model
Syntax
Description
Examples
Nominal Value of Uncertain Models
Create a model of a mass-spring-damper system in which the mass, spring constant, and damping constant are all uncertain.
m = ureal('m',3,'percent',40); k = ureal(“k”,2,'percent',30); c = ureal('c',1,'percent',20); G = tf(1,[m,c,k])
G = Uncertain continuous-time state-space model with 1 outputs, 1 inputs, 2 states. The model uncertainty consists of the following blocks: c: Uncertain real, nominal = 1, variability = [-20,20]%, 1 occurrences k: Uncertain real, nominal = 2, variability = [-30,30]%, 1 occurrences m: Uncertain real, nominal = 3, variability = [-40,40]%, 1 occurrences Type "G.NominalValue" to see the nominal value, "get(G)" to see all properties, and "G.Uncertainty" to interact with the uncertain elements.
G
is auss
model. Extract its nominal value.
Gnom = getNominal(G);
BecauseG
has only uncertain control design blocks,Gnom
is a numeric state-space (ss
) model.
CombineG
with a tunable PID controller.
C = tunablePID('C','pid'); T = feedback(G*C,1)
T = Generalized continuous-time state-space model with 1 outputs, 1 inputs, 3 states, and the following blocks: C: Tunable PID controller, 1 occurrences. c: Uncertain real, nominal = 1, variability = [-20,20]%, 1 occurrences k: Uncertain real, nominal = 2, variability = [-30,30]%, 1 occurrences m: Uncertain real, nominal = 3, variability = [-40,40]%, 1 occurrences Type "ss(T)" to see the current value, "get(T)" to see all properties, and "T.Blocks" to interact with the blocks.
T
is a generalized state-space (genss
) model that has both tunable and uncertain blocks. Extract the nominal value ofT
。
Tnom = getNominal(T)
Tnom = Generalized continuous-time state-space model with 1 outputs, 1 inputs, 3 states, and the following blocks: C: Tunable PID controller, 1 occurrences. Type "ss(Tnom)" to see the current value, "get(Tnom)" to see all properties, and "Tnom.Blocks" to interact with the blocks.
Extracting the nominal value ofT
preserves the tunable control design block, resulting in anothergenss
model.
Input Arguments
M
—Uncertain model or matrix
dynamic system model|static model
Uncertain model or matrix, specified as a dynamic system model or static model. Typically,M
is a model that contains uncertainty, such as auss
, uncertaingenss
, orumat
model.
Output Arguments
Mnom
— Nominal model or matrix
dynamic system model | static model
Nominal value ofM
, returned as a dynamic system model or static model.Mnom
has no uncertain blocks.
The model type ofMnom
depends on the type ofM
。佛r example, ifM
is agenss
model with uncertain blocks and tunable blocks, thenMnom
is agenss
model with tunable blocks.
IfM
contains no control design blocks other than uncertain blocks, thenMnom
is a state-space (ss
) model, anfrd
model, or a numeric array, depending on the type ofM
。佛r example, ifM
is auss
模型,然后Mnom
is ass
model. IfM
is aumat
, thenMnom
is a numeric array.
IfM
has no uncertain blocks, thenMnom
=M
。
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:。
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina(Español)
- Canada(English)
- United States(English)
Europe
- Belgium(English)
- Denmark(English)
- Deutschland(Deutsch)
- España(Español)
- Finland(English)
- France(Français)
- Ireland(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- Norway(English)
- Österreich(Deutsch)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)