journal article·2025-10-22Open access

Conceptually Simple Method for Optimizing Model Computations in MATLAB Simulink

Štefan Ondočko, Jozef Svetlík, Rudolf Jánoš, Ján Semjon, Marek Sukop, Tomáš Stejskal, Peter Marcinko

Applied Sciences· Volume 15· Issue 21

Abstract

This article describes a procedure for enhancing computational accuracy in MATLAB’s Simulink and Simscape environments, as illustrated through specific example cases. It builds on earlier published by the authors’ team, which demonstrated the practical application of the Simscape Multibody tool—originally designed for dynamic and kinematic analyses—for making static computations in truss systems. Simscape Multibody serves as an effective platform for realistic and simplified simulations of mechanical components, incorporating various mechanical properties. Consequently, it is valuable in simulating mechatronic systems, where the integration of mechanics, electronics, control systems, and information technologies is essential. Multiple models were tested and analyzed across different scenarios to facilitate a comparative assessment of the results. The significance of this work lies in its achievement of highly accurate computational results without relying purely on theoretical calculations, with superior values in terms of accuracy. The primary objective was to provide a clear and practical description of a simple procedure for improving computational accuracy, based on scaling.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Modeling and Simulation Systems · Simulation Techniques and Applications

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Manufacturing Machinery and Robotics, Faculty of Mechanical Engineering, The Technical University of Košice, Letná 9, 04001 Košice, Slovakia

Department of Engineering for Design of Machines and Transport Equipment, Faculty of Mechanical Engineering, The Technical University of Košice, Letná 9, 04001 Košice, Slovakia

Funding

Creation of prospective educational tools for the field of additive manufacturing with the implementation of progressive elements of virtual reality · Research and development of robotic workplaces equipped with industrial and collaborative robots

References (28)

Show source-provided references
1. Ondocko, S., Svetlik, J., Jánoš, R., Semjon, J., and Dovica, M. (2024). Calculation of Trusses System in MATLAB—Multibody. Appl. Sci., 14.10.20944/preprints202410.0003.v1 ↗
2. MathWorks, Inc. (2025, June 17). Simscape™ Multibody™ Getting Started Guide. The MathWorks, Available online: https://www.mathworks.com/help/pdf_doc/sm/sm_gs.pdf.
3. MathWorks, Inc. (2025, June 17). Simscape™ Multibody™ User’s Guide. The MathWorks, Available online: https://www.mathworks.com/help/pdf_doc/sm/sm_ug.pdf.
4. Langtangen, H.P., and Pedersen, G.P. (2016). Scaling of Differential Equations, Springer Nature.10.1007/978-3-319-32726-6 ↗
5. What is mechatronics and why teach it?10.7227/IJEEE.41.4.2 ↗
6. Bishop, R.H. (2017). Mechatronics: An Introduction, CRC Press.10.1201/9781420037241 ↗
7. MathWorks, Inc. (2009). SimMechanics™ 3 User’s Guide, The MathWorks.
8. Mechanical system and SimMechanics simulation
9. Modeling of dynamic systems in simulation environment MATLAB/Simulink–SimMechanics
10. MathWorks, Inc. (2025, October 03). System Scaling by Nominal Values. Available online: https://www.mathworks.com/help/releases/R2025b/simscape/ug/system-scaling-by-nominal-values.html?searchHighlight=command+scaling&s_tid=doc_srchtitle#mw_3cc30ae6-fec4-4118-a0d3-032dbf0901cc.
11. Miller, S., Soares, T., Weddingen, Y.V., and Wendlandt, J. (2017). Modeling flexible bodies with simscape multibody software. An Overview of Two Methods for Capturing the Effects of Small Elastic Deformations, MathWorks.
12. Bauchau, O.A., and Craig, J.I. (2009). Euler–Bernoulli beam theory. Structural Analysis, Springer.10.1007/978-90-481-2516-6 ↗
13. Trebuňa, F., and Šimčák, F. (2004). Odolnosť Prvkov Mechanických Sústav, Technická Univerzita.
14. Riveted Joints and Linear Buckling in the Steel Load–bearing Structure
15. Karnovsky, I.A., and Lebed, O. (2021). Advanced Methods of Structural Analysis, Springer Nature.10.1007/978-3-030-44394-8 ↗
16. Deriving analytical solutions using symbolic matrix structural analysis for continuous beams10.1038/s41598-025-98023-x ↗
17. Florian, Z., Pellant, K., and Suchánek, M. (2004). Technická mechanika I–Statika, Vysoké Učení Technické v Brně.
18. (2025, June 17). Available online: https://github.com/stefanondocko/AddOptimInSimulink.
19. MathWorks, Inc. (2002). Using Simulink. Simulink–Model–Based and System–Based Design, MathWorks Inc.
20. MathWorks, Inc. (2025, June 22). Speed Up Simulation. Available online: https://www.mathworks.com/help//releases/R2021a/simulink/ug/speed-up-simulation.html.
21. Gavin, H.P. (2018). Classical Damping, Non–Classical Damping and Complex Modes, Duke University.
22. MathWorks, Inc. (2025, June 17). Choose an ODE Solver. Ordinary Differential Equations. Available online: https://uk.mathworks.com/help/matlab/math/choose-an-ode-solver.html.
23. Oršanský, P., and Ftorek, B. (2017). Štatistické a Numerické Metódy, EDIS–ŽU.
24. Buša, J., Pirč, V., and Schrotter, Š. (2006). Numerické Metódy, Pravdepodobnosť a Matematická Štatistika, FEI TU.
25. (2025, June 17). Available online: https://github.com/vplevris/SymbolicMSA-2DTrusses.
26. Murín, J., Hrabovský, J., and Kutiš, V. (2014). Metóda Konečných Prvkov—Vybrané Kapitoly pre Mechatronikov, Slovenská technická univerzita v Bratislave.
27. Öchsner, A. (2021). Euler–Bernoulli beam theory. Classical Beam Theories of Structural Mechanics, Springer.10.1007/978-3-030-76035-9 ↗
28. MathWorks, Inc. (2025, June 17). Solver–Solver that Computes States and Outputs for Simulation. Available online: https://uk.mathworks.com/help/simulink/gui/solver.html.