Question


Preallocating a cell array of chars?
Is there a better way of preallocating a cell array of empty chars than using a for loop or deal? Cells can contain any data typ...

12 meses ago | 1 answer | 1

1

answer

Answered
Why is does one of the blocks in my library appear teal in the library browser but white when opened?
Did you try right-clicking in the model and clearing the highlighting, or right-clicking on the block and changing the backgroun...

alrededor de 1 año ago | 0

Question


How to use non-unique node names in a digraph?
I am trying to plot a Simulink model as a graph. I am using the digraph function, but I am running into issues because Simulink ...

alrededor de 1 año ago | 1 answer | 0

1

answer

Answered
How to change filter settings for slxmlcomp.compare?
I contacted MathWorks support. It is currently not possible to change filters from the command line using the slxmlcomp.compare ...

alrededor de 1 año ago | 0

| accepted

Question


How to change filter settings for slxmlcomp.compare?
I am using the slxmlcomp.compare function to compare two Simulink models programmatically. However, when there is a change to th...

más de 1 año ago | 1 answer | 0

1

answer

Question


Changing function packaging of Simulink Functions to inlined
Why is the Function Packaging option disabled for Simulink Functions? I'd like to edit this parameter to modify how the function...

más de 1 año ago | 2 answers | 0

2

answers

Submitted


Simulink Profiler data to Excel
Convert Simulink Profiler data into an Excel spreadsheet.

más de 1 año ago | 1 download |

Thumbnail

Submitted


Model Execution Time
Simulates a Simulink model a number of times and records/plots the execution time.

más de 1 año ago | 20 downloads |

Thumbnail

Answered
Adding multiple folders to path
addpath(genpath('balanceAssessment'))

más de 1 año ago | 0

| accepted

Answered
How to split this?
C = reshape(M, 16,[])' C = 5×16 char array '0110000101100010' '0110001110000000' '0000000000000000' ...

más de 1 año ago | 1

| accepted

Question


Checking existence of Simulink model with full pathname
Why is it that I can use the exist command to check if a model exists, but when I provide the fullpath name, it is only consider...

más de 1 año ago | 1 answer | 0

1

answer

Answered
How to change the foreground color of a block only, and not its output lines?
There are no alternative coloring methods at this time.

más de 1 año ago | 0

| accepted

Question


How to refresh System Target File (.tlc) SelectCallback?
I have a custom target file that is based on ert.tlc. I am editing the target-specific code generation options for a model's Con...

más de 1 año ago | 1 answer | 0

1

answer

Question


When is the 'ModelReferenceVersionMismatchMessage' Simulink model parameter editable?
When I open a model's test harness, I receive the following error: I would like to disable the "ModelReferenceVersionMismatch...

más de 1 año ago | 1 answer | 0

1

answer

Answered
When I save an image as .pdf, but matlab will produce an A4 size pdf, but i only need as the size of picture to insert in latex document
This question has already been answered. Please try one of the solutions in the link below: https://www.mathworks.com/matlabcen...

más de 1 año ago | 0

| accepted

Answered
what does the following syntax do?
I think there is a line missing at the beginning: Root_InPorts = find_system(Search_Path,'SearchDepth',1,'BlockType','Inport');...

más de 1 año ago | 0

| accepted

Answered
what is block arguments about handle meaing?
Each block, line, annotation, etc. in a Simulink model has a unique numeric identifier. It's called a "handle". You can use the ...

más de 1 año ago | 0

Answered
How can I set 'file name' and 'sheet name' as variables in 'from spreadsheet' block in simulink
Is it not possible to do this from the GUI, but you can do it from the command line: blk_pathname = 'testModel/From Spreadsheet...

más de 1 año ago | 0

| accepted

Answered
how do I display all the text on one line?
Did you try removing the newlines (or other formatting characters)? https://www.mathworks.com/matlabcentral/answers/429327-how-...

más de 1 año ago | 2

Answered
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...

más de 1 año ago | 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...

más de 1 año ago | 1 answer | 0

1

answer

Answered
??? 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 ...

más de 1 año ago | 0

Answered
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.

más de 1 año ago | 0

| accepted

Answered
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...

más de 1 año ago | 0

| accepted

Answered
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',...

más de 1 año ago | 0

| accepted

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...

más de 1 año ago | 1 answer | 0

1

answer

Answered
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...

más de 1 año ago | 0

Answered
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...

más de 1 año ago | 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...

casi 2 años ago | 1 answer | 0

1

answer

Answered
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 ...

alrededor de 2 años ago | 1

Load more