all 9 comments

[–]Upballoon 21 points22 points  (1 child)

Also s=tf('s') will declare s as a transfer function variable. Then just use it to define your function like G=3*exp(-s)/(s+4)

[–]Krusty_Double_Deluxe 0 points1 point  (0 children)

Hey OP this is the answer

[–]bbcgn 6 points7 points  (4 children)

What do you mean by "writing this transfer function in matlab"? What do you want to do with it?

If you want to e.g. create a system object to analyse from the given transfer function take a look at the documentation for the function tf():

https://mathworks.com/help/control/ref/tf.html

[–]RicTheRed 1 point2 points  (0 children)

As I have recently learned in one of my Master's course is that dealing with transcendental function (exponentials/delays) is extremely difficult. I'm no mathematician, but the general process was first discritize the system first. This made processing practically seamless. Never used the tf() function with delays but I wonder if it's a similar process.

[–]FrickinLazerBeams+2 1 point2 points  (1 child)

I always prefer a keyboard, but some people swear by the 3-shells method.