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!
Return a list sorted by number of occurrences
Find common elements in matrix rows
Counting in Finnish
Evaluating a polynomial
Pernicious Anniversary Problem
Model a mass spring system
Connect blocks in a model
Produce a sine wave
Counting pulses in a signal
Compute the step response of a DC motor
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