필터 지우기
필터 지우기

why iam getting error

조회 수: 1 (최근 30일)
deekshith
deekshith 2024년 3월 9일
답변: Walter Roberson 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에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by