How to replace variable 's' in the transfer function with another variable
显示 更早的评论
回答(1 个)
Andrei Bobrov
2014-12-3
yourTransferfunction = @(g)d(g+1);
3 个评论
Joshua
2014-12-3
swarmer
2020-10-22
This is known as an Anonymous Function. It is similar to lambdas from other programming like Python. Here is Wiki link if anyone wants to read into it further: https://en.wikipedia.org/wiki/Anonymous_function
Fabio Gavilan
2022-4-28
If you fill in yourTransferfunction(1) you get:
"Error using indexing Subscript no. 2 is out of range."
This does not change the variable in the expected way.
类别
在 帮助中心 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!