[ad_1]
One way to do the comparison is by implementing the analytical solution in Simulink and superimposing the numerical and analytical solutions on a single graph. To do this, create a signal by using the “Ramp” with a slope of 1. Label the output of the Ramp block “Time” and use it as an input to the appropriate Math Operations blocks.
undefined
Alternatively, you could save the “Scope” data “to Workspace” and analyze the data in Matlab.
undefined
d.Examine the effect of step size in numerical integration. Note that the default solver for the integrator is a variable-step solver. This means that the integration time step is adjusted according to how fast the model is changing. There are both advantages and disadvantages to this method in terms of computation. Most of the time in this course we will use a fixed-step solver.
Sample Solution
The post Implementing the analytical solution in Simulink and superimposing appeared first on acestar tutors.
[ad_2]
Source link