Zeit asked . 2021-09-22

What are the implications of using the Derivative block in Simulink?

I have tried using the Derivative block in Simulink and have generally found that it can lead to complications. I usually try to restructure my model to avoid the use of Derivative blocks, but that is sometimes difficult to do. In that case, what are some best practices for using the Derivative block, or should I consider using a different type of block or transfer function? If so, what are some possible alternatives?

Simulink , matlab , solutions

Expert Answer

Prashant Kumar answered . 2024-11-06 04:25:46

Here is a list of recommendations on the usage of the Derivative block:
 
1) Signals connected to the Derivative block should be continuous in time and amplitude
Derivative blocks amplify discontinuities when connected to a non-continuous signal. In example 'Example1_Discont.mdl', the slope of the input signal changes instantly. After being passed through a Derivative block, it becomes a peak.
 
2) Signals connected to the Derivative block should have a small derivative at t=0
‘Example2_Spike.mdl’ shows how a spike can occur in the second derivative after the first time step. This occurs because the Derivative block yields 0 by default at the initial time step, instead of 2*pi in this case. If this model is simulated again with a smaller time step, the spike amplitude increases.
 
3) Signals connected to the derivative should contain a low level of noise
In general, taking the derivative of a noisy signal tends to exacerbate the influence of that noise. Therefore, Derivative blocks in Simulink exhibit this behavior as well. In ‘Example3_Noise.mdl’, the noise gets amplified in the output, to the point where the derivative of the sine wave is not recognizable. By using a filtered derivative transfer function which filters out higher frequencies, a much better result can be obtained in the example.
 
If your model cannot respect the above guidelines, you might want to consider the following alternatives:
 
a) Rearranging the equations
Typically, a system's best-form mathematical model exclusively involves integrators (i.e., no derivatives). It is usually possible to design the model in such a way that Derivative blocks are never needed. In 'Example4_BestForm.mdl', the "naive" first approach involves a Derivative block; however, the second approach avoids having to compute the derivative.
 
b) Including the derivative into a transfer function
 
If a Derivative block and another Transfer Function block are in series, it may be possible to remove the Derivative block and multiply the numerator of the transfer function by ‘s’ (see ‘Example5_InSeries.mdl’, where the magnitude of the error is very small compared to the magnitude of the output signal).
 
c) Filtered derivative
 
The Derivative block can be replaced with a transfer function of the form G(s) = s/(tau*s+1), where ‘tau’ is a time constant which should be small compared to the dominant time constant of the system, to avoid filtering out important system dynamics. ‘Example6_Filtered.mdl’ contrasts this transfer function with the Derivative block.
 
* Additional note:
 
How is the derivative part of the PID controller implemented in Simulink? It does not use a Derivative block, but instead implements a filtered derivative similar to the one described above. In a model including a PID Controller block, right-click on the block and select ‘Look Under Mask’ to see the exact implementation of the controller, and in particular its derivative part.


Not satisfied with the answer ?? ASK NOW

Frequently Asked Questions

MATLAB offers tools for real-time AI applications, including Simulink for modeling and simulation. It can be used for developing algorithms and control systems for autonomous vehicles, robots, and other real-time AI systems.

MATLAB Online™ provides access to MATLAB® from your web browser. With MATLAB Online, your files are stored on MATLAB Drive™ and are available wherever you go. MATLAB Drive Connector synchronizes your files between your computers and MATLAB Online, providing offline access and eliminating the need to manually upload or download files. You can also run your files from the convenience of your smartphone or tablet by connecting to MathWorks® Cloud through the MATLAB Mobile™ app.

Yes, MATLAB provides tools and frameworks for deep learning, including the Deep Learning Toolbox. You can use MATLAB for tasks like building and training neural networks, image classification, and natural language processing.

MATLAB and Python are both popular choices for AI development. MATLAB is known for its ease of use in mathematical computations and its extensive toolbox for AI and machine learning. Python, on the other hand, has a vast ecosystem of libraries like TensorFlow and PyTorch. The choice depends on your preferences and project requirements.

You can find support, discussion forums, and a community of MATLAB users on the MATLAB website, Matlansolutions forums, and other AI-related online communities. Remember that MATLAB's capabilities in AI and machine learning continue to evolve, so staying updated with the latest features and resources is essential for effective AI development using MATLAB.

Without any hesitation the answer to this question is NO. The service we offer is 100% legal, legitimate and won't make you a cheater. Read and discover exactly what an essay writing service is and how when used correctly, is a valuable teaching aid and no more akin to cheating than a tutor's 'model essay' or the many published essay guides available from your local book shop. You should use the work as a reference and should not hand over the exact copy of it.

Matlabsolutions.com provides guaranteed satisfaction with a commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been empanelled after extensive research and quality check.

Matlabsolutions.com provides undivided attention to each Matlab assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work done at the best price in industry.