How to show difference equation on the command line?

1 Ansicht (letzte 30 Tage)
William
William am 21 Sep. 2021
Beantwortet: KSSV am 21 Sep. 2021
For example, given , is there a way to show this equation on the command line in Matlab just like what the tf() does?

Antworten (1)

KSSV
KSSV am 21 Sep. 2021
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)

Kategorien

Mehr zu Dynamic System Models finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by