When is a simple constant-velocity or constant-acceleration model sufficient, and when is a more detailed model needed?
Description
Constant velocity may suffice to estimate distance traveled over a short interval. To describe how an object attached to a spring oscillates and stops, include forces that depend on position and velocity.
Start by representing the changes needed for the purpose rather than including every element. Reconsider omitted effects when differences between predictions and observations become significant.
03 Representation and use
What is easier to check by representing the same motion model as both equations and blocks?
Description
Equations show relationships between variables; blocks show how signals travel and connect.
The same model with the same input and initial conditions should produce the same response. This exercise checks whether different representations implement the same relationship.
Practice
1. Construct the transfer function
Substitute , , and into the mechanical model's transfer function to create a MATLAB model.
State the transfer function used, and record dcgain(G) beside the hand-calculated . State whether they agree.
2. Block connections and responses
Keep the baseline G=tf(1,[1 2 5]) and connect negative feedback with .
Write the closed-loop transfer function simplified by hand beside the result of feedback(G,2).
Write both equations' denominator coefficients in the same power order and compare them. Also identify which coefficients differ from the case .
3. Open the Simulink model
Connect Step → Transfer Fcn → Scope in Simulink. Set the numerator to [1] and denominator to [1 2 5] to match the baseline G=tf(1,[1 2 5]).
Run with Step time=0, Final value=1, and Stop time=10.
Present the Scope output beside MATLAB's step(G,0:0.01:10) curve. Use the same time range and output-axis range, and state whether the final values and curve shapes agree. This block diagram corresponds to G without feedback.
Submission and saving
Include code, actual outputs and plots, and your own interpretation. Submit through KLAS; check the semester schedule and latest announcements for the deadline.
Filename: Name_StudentID_Week4.mlx.
Restart the runtime, run all code from the top, then save.
Optional practice
Example: changing the coefficient order in a transfer-function denominator
Create the baseline tf(1,[1 2 5]) and a separate model tf(1,[5 2 1]) with reversed coefficient order.
Write each denominator polynomial and DC gain side by side. Change only the denominator vector to [1 2 5] so that .