Answered
simulink real time task excution time
In your task, you might have some conditional statements. If the condition is met, certain codes or blocks are executed thus tak...

1 month ago | 0

Answered
System Design Description Report in 2018b
File > Reports > System Design Description is right at the menu of a Simulink model in MATLAB R2018b. Make sure you have the Sim...

2 months ago | 1

| accepted

Answered
Convert single string with many numbers to vector
a=str2num(hue);

2 months ago | 1

Answered
Save an output each simulation
In your model, you have a "To Workspace" block logging four signals and writing to a workspace variable "simout". Of course, the...

2 months ago | 1

| accepted

Answered
Using a bus-signal as an Input into a 'Model'-Block in Simulink
see the demo model: sldemo_mdlref_conversion

2 months ago | 0

Answered
Remove parameters defined in Data Dictionary which are not used reference model
At the root level of your model, right click on the canvas, select "Find Referenced Variables"

2 months ago | 2

| accepted

Answered
Signal sine wave ??
If there is no constrain, you could multiple the Clock with 2*pi*f, where f is your frequency and then feed it to an "Interprete...

2 months ago | 1

Answered
lookup tables having issue about the monotonically increasing data.
For lookup tabel data, you need to make sure the value of the breakpoint data is strictly increasing.

2 months ago | 0

Answered
How can I programmatically delete a group (test case) from a signalbuilder?
doc signalbuilder Create Signal Builder Block and Delete Group Create a Signal Builder block with two signal groups and dele...

2 months ago | 0

| accepted

Answered
Need to run sl_refresh_customizations each time I open my Simulink project
See Customize Build Process with sl_customization.m

2 months ago | 0

| accepted

Answered
Every combination of elements
nchoosek(1:4,2)

2 months ago | 0

| accepted

Answered
How do I get multiple images in Simulink mask editor (Icon Drawing Commands)
You are on the righ track to what you want to achieve. The error is related to something else. For example, 'abc'=='abc ' wou...

2 months ago | 0

Answered
Problem when two Simulink models are combined.
In the two separate models, can you run simulation and log the time? Take a look at the resulting fixed-step size. Do the same f...

2 months ago | 0

Answered
Simulink variable number of input to a block
It could be done. First, understand this Parameterized Links and Self-Modifiable Linked Subsystems Second, construct your mo...

2 months ago | 0

| accepted

Answered
Save Excel cell range as image with activeX
Range.CopyPicture method (Excel)

2 months ago | 0

Answered
Getting out of while loop when user says end
Use isequal(answer,'Yes') or strcmp(answer,'Yes') 'Yes'=='No' will cause the problem.

2 months ago | 0

| accepted

Answered
Defining Matlab function datatype input in Simulink
In the MATLAB Funciton editor, click icon "Edit Data". Or in Simulink, Ctrl+H to open Model Explorer, on the left column, navig...

2 months ago | 1

| accepted

Answered
How to programmatically name blocks when creating a model
handle=add_block(...); set(handle, 'Name','YourBlockName'); Make sure the name is unique though. If not, find a way to make it...

2 months ago | 0

| accepted

Answered
How can I transfer specific values to a new variable?
z(y==1)?

2 months ago | 0

Answered
Error in port widths or dimensions.
The Outport block "Out1" in "PI Controller" is connected to a BusCreator (or Mux) block. It contains two signals. That might be ...

3 months ago | 0

Answered
cant find the mistake here
The mistake is that you need to insert this line as the first line inside your function. v=[];

3 months ago | 0

Answered
why does appear this error: "Unable to open file 'C:\Users\jonat\Desktop\Clean\~$2019-04-26 Clean.xlsx'?
The name "~$2019-04-26 Clean.xlsx" indicates it is a temporary file. Is the file opened or edited by another program or by the c...

3 months ago | 0

Answered
Finding approximate y values for corresponding x values in matlab
interp1(x,y,3.1,'nearest')

4 months ago | 0

Answered
How to access used variables in a specific state in stateflow
Create and Access Charts Using the Stateflow API

4 months ago | 0

Answered
sldiagnostics counts subsystems which are not visible
When Simulink compiles or updates the model, it went through many steps. I have a guess on what "Pre-compile post-eval notifies"...

4 months ago | 0

Answered
Is Walter Roberson a real person, or is he some kind of Matlab AI robot?
Ha Ha Ha, a good question! I would say a robot, but I bet Walter Roberson would say otherwise.

4 months ago | 1

Answered
How to set datetime for every 9.9156 days?
t2= datetime(1994,1,1,0,0,0,'TimeZone','GMT+8'); t:days(9.9156):t2

4 months ago | 1

| accepted

Answered
How to get used Matlab Workspace variables within Simulink model
Simulink Data Dictionary has the capability. You can migrate your workspace variables to a Simulink Data Dictionary. When you do...

4 months ago | 0

Answered
How to make Simulink run the entire model just once?
Each MATLAB function block will be executed once for every simulation step. Inside the MATLAB function block, there could be loo...

4 months ago | 0

Load more