why iam getting error

1 Ansicht (letzte 30 Tage)
deekshith
deekshith am 9 Mär. 2024
Beantwortet: Walter Roberson am 9 Mär. 2024
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

Antworten (1)

Walter Roberson
Walter Roberson am 9 Mär. 2024
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.

Kategorien

Mehr zu Operators and Elementary Operations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by