Questions tagged [simulink]

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems.

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems. It provides an interactive graphical environment and a customizable set of block libraries that let you design, simulate, implement, and test a variety of time-varying systems, including communications, controls, signal processing, video processing, and image processing.

Some useful links:

2638 questions
5
votes
0 answers

Interpolation with pre-lookup

I need to perform many (thousands) of look-up operations, where the break-points in the look-up do not change. A simple example would be, % create some dummy data % In practice % - the grid will be denser, and not as regular % - each page of v will…
Phil Goddard
  • 10,286
  • 1
  • 13
  • 25
5
votes
1 answer

How can I adjust the display of IO ports on a subsystem block in Simulink?

I'm developing an 8-input digital multiplexer in Simulink and created a subsystem which implements a multiplexer operation with 3 enable inputs. I would like to display the input channels (I0-I7) on the left of the subsystem block, the 3 enable…
Kiran
  • 6,858
  • 30
  • 95
  • 156
5
votes
6 answers

What is MATLAB? Does it generate executables?

What exactly is MATLAB/Simulink? I've tried to understand it but have only gotten more confused in the process. I know that you can write programs utilizing high-level industry-specific functions and algorithms but: Is it a runtime where you can…
Robin Rodricks
  • 99,791
  • 133
  • 372
  • 575
5
votes
1 answer

Simulink Project dependency management and dependency resolution

What is the best practice for managing dependencies within a Simulink Project when the project is worked on across a team and the project has dependencies on different models and libraries? An parallel example would be when building an application…
John
  • 7,605
  • 10
  • 46
  • 108
5
votes
1 answer

Modeling a floor/ground for a walking robot in Simulink

I'm trying to create a simple model of a body which will then be later controlled. However, I am running into trouble when I'm connecting both legs to the body. What I have done is that I have built the model starting with the left foot, attached to…
Ortix92
  • 2,648
  • 1
  • 27
  • 57
5
votes
1 answer

What files should I add to the .gitignore when using MATLAB and Simulink?

I would like to know what files I should add to the .gitignore file when I am using MATLAB and Simulink. Should the files slx.original be added?
lmiguelvargasf
  • 40,464
  • 32
  • 169
  • 172
5
votes
2 answers

Is there something like a "pre-build" callback function?

I have a Simulink model, the purpose of which is automated code generation. My model uses S-functions (developed by another party), which has hard-coded assumptions about the path. For instance, several external data files are needed, which are…
Rody Oldenhuis
  • 36,880
  • 7
  • 47
  • 94
5
votes
2 answers

How to recompile model DLL without restarting MATLAB?

I am in the process of developing an SFunction and compiled submodel in Simulink, an SFunction that calls into a DLL compiled using Realtime Workshop. The problem is, once I compile the submodel once, execute it in native Simulink through the…
J Collins
  • 1,966
  • 22
  • 27
5
votes
4 answers

How to flip a Simulink block VERTICALLY?

I have been trying to flip a block in Simulink along the vertical but I couldn't figure out how this can be done. For example, when the "sincos" trigonometric function block is inserted, the sin output is up and the cos output is down. I want the…
5
votes
2 answers

How to get location of signal name on signal line (MATLAB/Simulink)

I have some problems about signal name when I set a name to signal. Now I can set and get signal name by set_param(signal_h, 'SignalNameFromLabel', signal_name); and get_param(signal_h, 'Name'); But I can not set or get location of signal name. I…
5
votes
3 answers

Matlab to workspace and rms value different

I have a very simple circuit in matlab. There is a voltage source of 100 V peak. Both resistance if of 100 ohm. If I see the voltage in display box, it shows 36.476 V But in the TESTV matrix it shows 25.1761 V Why is it different? This is the…
Santosh
  • 1,821
  • 1
  • 18
  • 36
5
votes
2 answers

Programmatically Labeling a Signal in Simulink

I'm attempting to write a script that generate a basic Simulink model and I'd like to know if there's a way to programmatically label a signal line. I've looked at the add_line function (which is what I'm using to add the lines), but I don't see an…
celestialorb
  • 1,798
  • 5
  • 25
  • 48
4
votes
2 answers

Writing comments for Simulink

How to write comments beside the simulink blocks ... is it possible to have text blocks or mouse over for the simulink as I need it for teaching my friend online and also for further self reference?
Raja Tejas
  • 43
  • 1
  • 3
4
votes
6 answers

Modeling and Simulation Programming Language

I work with many different models and simulations. Some of the older models and simulations are written in FORTRAN. Some of those models have been converted to C++, but the current trend is to create these models using MATLAB/SIMULINK. From a…
SchwartzE
  • 2,450
  • 5
  • 29
  • 39
4
votes
1 answer

Obtaining the model topology from a Simulink model

I would like to create a structure in Python which represents a Simulink model. I am aware of at least two ways of doing this - by parsing an ".mdl" file, or by using Matlab's api for communicating with the model. Can you recommend good libraries or…
Felipe Ferri
  • 3,179
  • 1
  • 26
  • 37