Main Content

Results for

I'm introducing the NKTg Law, a concise model describing how an object's motion tendency depends on position (x), velocity (v), and mass (m).
Definition:
NKTg = f(x, v, m)
Key quantities:
  • NKTg₁ = x * p
  • NKTg₂ = (dm/dt) * p
where p = m * v and dm/dt is the time rate of mass change.
Interpretation:
  • NKTg₁ > 0 → tendency to move away from equilibrium
  • NKTg₁ < 0 → tendency to move toward equilibrium
  • NKTg₂ > 0 → mass variation supports motion
  • NKTg₂ < 0 → mass variation resists motion
Stable state: when x, v and m interact to preserve the motion structure.
Would you like a ready-to-run MATLAB script / Live Script to simulate and plot NKTg₁ and NKTg₂?
I am deeply honored to announce the official publication of my latest academic volume:
MATLAB for Civil Engineers: From Basics to Advanced Applications
(Springer Nature, 2025).
This work serves as a comprehensive bridge between theoretical civil engineering principles and their practical implementation through MATLAB—a platform essential to the future of computational design, simulation, and optimization in our field.
Structured to serve both academic audiences and practicing engineers, this book progresses from foundational MATLAB programming concepts to highly specialized applications in structural analysis, geotechnical engineering, hydraulic modeling, and finite element methods. Whether you are a student building analytical fluency or a professional seeking computational precision, this volume offers an indispensable resource for mastering MATLAB's full potential in civil engineering contexts.
With rigorously structured examples, case studies, and research-aligned methods, MATLAB for Civil Engineers reflects the convergence of engineering logic with algorithmic innovation—equipping readers to address contemporary challenges with clarity, accuracy, and foresight.
📖 Ideal for:
— Graduate and postgraduate civil engineering students
— University instructors and lecturers seeking a structured teaching companion
— Professionals aiming to integrate MATLAB into complex real-world projects
If you are passionate about engineering resilience, data-informed design, or computational modeling, I invite you to explore the work and share it with your network.
🧠 Let us advance the discipline together through precision, programming, and purpose.
Los invito a conocer el libro "Sistemas dinámicos en contexto: Modelación matemática, simulación, estimación y control con MATLAB", el cual ya está disponible en formato digital.
El libro integra diversos temas de los sistemas dinámicos desde un punto de vista práctico utilizando programas de MATLAB y simulaciones en Simulink y utilizando métodos numéricos (ver enlace). Existe mucho material en el blog del libro con posibilidades para comentarios, propuestas y correcciones. Resalto los casos de estudio
Creo que el libro les puede dar un buen panorama del área con la posibilidad de experimentar de manera interactiva con todo el material de MATLAB disponible en formato Live Script. Lo mejor es que se pueden formular preguntas en el blog y hacer propuestas al autor de ejercicios resueltos.
Son bienvenidos los comentarios, sugerencias y correcciones al texto.
I have picked the title but don't know which direction to take it. Looking for any and all inspiration. I took the project as it sounded interesting when reading into it, but I'm a satellite novice, and my degree is in electronics.

I need to model a brushless motor for which I only have the data of voltage, power, speed, nominal torque, starting torque, max current and total weight, which moves a bicycle. I have studied the Permanent Magnet Synchronous Machine power_pmmotor Simulink example, but I do not have all the required data. My question is whether it is possible to make an approximate model with my few data. I guess some data could be assumed, but I don't know what typical values ​​would be correct. I would greatly appreciate any suggestion. My best regards.

What is it?

SimFunction allows you to perform multiple simulations in a single line of code by providing an interface to execute SimBiology® models like a regular MATLAB function.

Consider the following similarity: If you want to calculate the value of the sine function at multiple times defined in the variable t, you use the following syntax:

 >> y = sin(t)

If mymodel represents a SimFunction, you can simulate your model with multiple parameter sets using the following syntax:

 >> simulationData = mymodel(parameterValues, stopTime, dose)

.

What is it good for?

Multiple simulations

Because it allows you to perform multiple simulations in a single line of code by providing a matrix of parameter values or variants or a cell array of dosing tables, it is particularly suited for

  • parameter and dose scans
  • Monte Carlo simulations
  • customized analyses that require multiple model simulations such as a customized optimization

Performance

SimFunctions are optimized for performance as they are automatically accelerated at the first function execution, which converts the model into compiled C code. Those simulations can be distributed to multiple cores or to a cluster and run in parallel if Parallel Computing Toolbox™ is available thanks to its built-in parallelization or within a parfor loop.

Simulation deployment

Since SimFunction objects cannot be changed once created, they can be shared with others without the risk of altering the model inadvertently.

Also, you can use SimFunctions to integrate a SimBiology model into a customized MATLAB App and compile it as standalone application to share with anyone without the need of a MATLAB license.

.

How does it work?

Create a SimFunction object using the createSimFunction method by choosing:

  1. which parameters it should take as inputs
  2. which targets will be dosed
  3. which model quantities it should return
  4. which sensitivities it should return if any

Have a look at the following example from the SimBiology documentation for an executable script to help you get started: Perform a Parameter Scan.