How to replace variable 's' in the transfer function with another variable
Ältere Kommentare anzeigen
Antworten (1)
Andrei Bobrov
am 3 Dez. 2014
yourTransferfunction = @(g)d(g+1);
3 Kommentare
Joshua
am 3 Dez. 2014
swarmer
am 22 Okt. 2020
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
am 28 Apr. 2022
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.
Kategorien
Mehr zu Digital Filter Analysis finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!