I also have to use initial conditions of 2 and 3 to get the correct output... In Simulink I can use 1 and 1 and get a plot showing 1,1,2,3,5,8... etc. Unsure why the expected output here is different!
Remove the polynomials that have positive real elements of their roots.
Matrix indexing with two vectors of indices
The Answer to Life, the Universe, and Everything
Rounding off numbers to n decimals
Add offset to a signal
Compute the step response of a DC motor
Model a simple pendulum
Produce a sine wave
Model a falling body
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office