How to show difference equation on the command line?
Show older comments
For example, given
, is there a way to show this equation on the command line in Matlab just like what the tf() does?
, is there a way to show this equation on the command line in Matlab just like what the tf() does?Answers (1)
fprintf('y(n) = 0.25\n')
fprintf('y(n-2) = 2*x(n)+0.5*x(n-2)\n')
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!