why iam getting error

1 次查看(过去 30 天)
deekshith
deekshith 2024-3-9
tf1 = tf(1, 0.08 1):
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
tf2 = tf(1,0.03 1):
tf_series = tf1 * tf2

回答(1 个)

Walter Roberson
Walter Roberson 2024-3-9
The colon operator always has to be followed by a second parameter, except when it is being used as the sole index to an array.
tf1 = tf(1, [0.08 1]);
tf2 = tf(1, [0.03 1]);
tf_series = tf1 * tf2
tf_series = 1 ----------------------- 0.0024 s^2 + 0.11 s + 1 Continuous-time transfer function.

类别

Help CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by