How to show difference equation on the command line?

2 ビュー (過去 30 日間)
William
William 2021 年 9 月 21 日
回答済み: KSSV 2021 年 9 月 21 日
For example, given , is there a way to show this equation on the command line in Matlab just like what the tf() does?

回答 (1 件)

KSSV
KSSV 2021 年 9 月 21 日
fprintf('y(n) = 0.25\n')
y(n) = 0.25
fprintf('y(n-2) = 2*x(n)+0.5*x(n-2)\n')
y(n-2) = 2*x(n)+0.5*x(n-2)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by