- Double-click the "MATLAB Function" block to open the editor.
- Enter the code to define a pressure profile as a function of time (refer to the example function below:)
- Drag another "MATLAB Function" block into your model for the flow profile.
- Double-click the new "MATLAB Function" block to edit and enter the code to define the flow profile as a function of time (refer to the example function below:)
- Add "Clock Block" and "Scope Block" to the input and output respectively.
