In Simulink, you can use a Transfer Function block to represent 1/s. To set s to the input signal, use a Signal Generator block with Frequency set to 1.
Your Simulink model would look something like this:
main.m79 chars3 lines
In the Transfer Function block, specify the numerator as 1 and the denominator as [1 0] to represent 1/s.
Here's how you can do this in MATLAB code:
main.m244 chars16 lines
This code will generate an input signal u that is equal to 1/s and then simulate the transfer function 1/s using lsim. The input and output signals are then plotted using plot.
gistlibby LogSnag