Réponse apportée
read the text file
You can use the From Workspace block to read signal data from the workspace. Otherwise there is a From File block that reads sig...

plus de 6 ans il y a | 1

Question


Running/testing scripts on multiple Matlab/Simulink versions?
I do a lot of script and tool development for Matlab/Simulink. This involves supporting multiple versions of Matlab, usually fro...

plus de 6 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
??? There is no block named 'SimPowerSystems/Extra Library/Control Blocks/Timer'.
I don't have R2010a installed, but will try to help. 1) Please ensure you have the SimPowerSystems toolbox installed. You can ...

plus de 6 ans il y a | 0

Réponse apportée
Where are Expected Outputs of Test Generation in Simulink Design Verifier?
This is a bug. I could not find a workaround other than to upgrade to a newer version of Matlab.

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Simulink Report Generator XML Comparison Filtering
Just wanted to follow-up and mention that as of R2018b the MathWork's Simulink Comparison Tool does support fine-grained filteri...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Find the name of last inport in sub-system
find_system(gcs, 'SearchDepth', 1, 'BlockType', 'Inport', 'Port', num2str(length(find_system(gcs, 'SearchDepth', 1, 'BlockType',...

plus de 6 ans il y a | 0

| A accepté

Question


How to get underlying numbers of enumeration?
I have a custom enumeration data type such as the one defined in the code below. How can I get the underlying integer values tha...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Recognize Block in Simulink
a) Constant b) Display, with the Numeric Display Format parameter set to bank c) SubSystem If you have the model with these...

plus de 6 ans il y a | 0

Réponse apportée
How to determine a broken connection in a test harness using a matlab script?
The following command will provide a list of line handles that are unconnected in the top-level of the model: lines = find_syst...

plus de 6 ans il y a | 0

Question


How to programmatically rename Stateflow states that are grouped?
From the command window I would like to rename all states that are in a Stateflow chart. I'll use the following built-in model a...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Get execution time of a Simulink model
I have a script on the File Exchange that does just this. You can also execute the model several times and get the min/max/mean ...

presque 7 ans il y a | 1

Réponse apportée
Tic Toc Equivalent for Simulink
If you want to "tic toc" an entire model, there is this script on the File Exchange (full disclosure, I am the author): https://...

presque 7 ans il y a | 3

Réponse apportée
How to get properties of Area Annotation in Matlab R2015a from Command Prompt?
a = find_system(gcs, 'FindAll', 'on', 'Type', 'Annotation', 'AnnotationType', 'area_annotation') Valid properties of annotation...

presque 7 ans il y a | 1

Réponse apportée
Turn a simulink model into a digraph
You may be interested in some functions provided by the Auto Layout Tool available on the File Exchange. Those provided in src/G...

presque 7 ans il y a | 2

A soumis


KWIC
A Matlab implementation of the Key Word in Context (KWIC) system.

presque 7 ans il y a | 1 téléchargement |

5.0 / 5

Question


How to change the foreground color of a block only, and not its output lines?
I am trying to color a very specific set of blocks in a model. When I change their ForegroundColor parameter (both via Context M...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to find Matlab Function blocks in a model?
isMLfunction = strcmp(get_param(gcb, 'SFBlockType'), 'MATLAB Function'); See https://www.mathworks.com/matlabcentral/answers/...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How to install additional toolboxes in matlab r2012a?
Please see this answer from MathWorks: https://www.mathworks.com/matlabcentral/answers/101885-how-do-i-install-additional-toolbo...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to get information on a Simulink.Signal data store?
A function will have its own workspace, so you will have to get the Simulink.Signal object from the base workspace first: % Get...

plus de 7 ans il y a | 1

| A accepté

Question


How to change the color of labels in a Simulink project?
I have created a new "Utility" classification label in my Simulink project, so I can distinguish between the design files and ut...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


How to use Simulink's "Arrange" options programmatically?
Simulink has many useful functions in the context menu for arranging blocks in a model, as shown in the image below. Is it possi...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How do I delete the zeros from the matrix?
Instead of "-" the following function uses NaN. function B = removeMatZeros(A) B = []; for i = 1: size(A, 1) ...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Why can't I find the model I need in the simulink?How can I get the demo?
R2016b was the last version of the Simscape Power Systems toolbox that includes the model you are looking for ( |power_dcdrive_d...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Edit model context menu
function myOption(callbackInfo) selection = find_system(gcs, 'Type', 'block', 'Selected', 'on'); if isempty(selecti...

environ 8 ans il y a | 0

Réponse apportée
Reset autoroute on existing line
Unfortunately such a parameter does not exist. The only way I know to change the autorouting type would be to delete and then re...

environ 8 ans il y a | 0

A soumis


gcls - Get current lines
The gcbs equivalent for lines.

environ 8 ans il y a | 1 téléchargement |

0.0 / 5

A soumis


gcas - Get current annotations
The gcbs equivalent for annotations.

environ 8 ans il y a | 1 téléchargement |

0.0 / 5

Réponse apportée
How to set the Model History information programmatically?
I ended up contacting Matlab Support for this. Some of these parameters are formatted based on another parameter. While the ...

plus de 8 ans il y a | 3

| A accepté

Question


Is there a list of all color long names?
Information on Matlab's color specification describes 8 basic colors and states that, "... long names are character vectors that...

plus de 8 ans il y a | 4 réponses | 1

4

réponses

Réponse apportée
Obtain Simulink Object Handle (or path) from slxmlcomp results?
There is no built-in way of getting the handle/path. As you mentioned, it is possible to reconstruct the path information given ...

plus de 8 ans il y a | 0

| A accepté

Charger plus