Risposto
Turn Off a Lamp Block after 10s
https://www.mathworks.com/help/stateflow/ref/after.html

circa 3 anni fa | 0

Risposto
I am working with Galois field. I obtained all the 256 values, and now i want to make the matrix form of the obtained values.
results = zeros(1,256); for x_gf = 0:255 e = conv(a, x_gf); f = conv(c, x_gf); h = e + b; j = f + d; ...

circa 3 anni fa | 0

Risposto
how to give initial condition to simulink function variables
A Simulink Function is like a Simulink model. Depending on the blocks that are used inside the Simulink Function, some blocks ha...

circa 3 anni fa | 0

Risposto
How do I plot lines with different line widths?
To plot two lines with different line widths, you can use either of these approaches. 1. Return the two “Line” objects as an out...

circa 3 anni fa | 19

| accettato

Risposto
How to programmitcally edit the "Goto Tag" in "From" block in simulink
get_param(PathToTheBlock,'GotoTag'); set_param(PathToTheBlock,'GotoTag','B')

circa 3 anni fa | 1

| accettato

Risposto
header files from simulink data dictionary
Use Simulink Data Dictionary API, open the SLDD, get the bus object, get the "headfile" property https://www.mathworks.com/help...

circa 3 anni fa | 0

Risposto
Open system mask parameters
If the block has been masked, the command to open the masked parameters is open_system(block)

circa 3 anni fa | 0

Risposto
function call with on off control in simulink
You could use the Pulse Generator block, instead of the Stateflow chart, to generate the "101010 signal graph".

circa 3 anni fa | 0

Risposto
Hot to get Signal path and block port number from Simulink model
open_system('f14'); lines=find_system('f14','FindALl','On','type','line','name','w'); get(lines(1),'SourcePort')

circa 3 anni fa | 0

Risposto
Can a stand alone version be used by anyone?
Yes. It says "royalty-free". MATLAB Compiler enables you to share MATLAB programs as standalone applications and web apps. With...

circa 3 anni fa | 0

Risposto
While importing a .mat file into simulink using the "From File" block, I lose the first data point.
The "From Workspace" block is used to import data into Simulink. It can specify sample time. The "To Workspace" block is usedd ...

circa 3 anni fa | 0

Risposto
Update variables by simulink conditional statement
Inside the If Action subsystem, double click the Outport block, there is an option for "Output when disabled", choose "reset" in...

circa 3 anni fa | 0

| accettato

Risposto
error in electric vehicle simulation in Simulink
Press Ctrl+E to bring up the configuration parameters, Solver, set the Minimum step size from 2.0 to at least 0.5, or better at ...

circa 3 anni fa | 0

Risposto
Variant control 'variant_generation' of variant block
The error message is as clear as it gets. Open the example model of the Variant Subsystem block to learn its proper use. The di...

circa 3 anni fa | 0

Risposto
Programmically re-order model reference inports in Simulink
This is interesting. A user could drag and drop the ports, to a different order or even to the top, bottom or right side of the ...

circa 3 anni fa | 0

Risposto
how to programtically add junctions and default transition in state flow and connect them
transition = Stateflow.Transition(ch); transition.Source = [];% this makes it default transition. transition.Destination = j2;...

circa 3 anni fa | 0

| accettato

Risposto
transform the cell (50x95 cell) into the matrix 'in' (50x95x3 uint8)
cell2mat(out)

circa 3 anni fa | 0

| accettato

Risposto
How to Add several stateflow chart to a exist simulink model programtically
add_block()

circa 3 anni fa | 0

| accettato

Risposto
Record block isn't producing a "recordout" field
"out" is a Simulink.SimulationOutput object. By default, it records the root level outputs. You don't have any Outport blocks. ...

circa 3 anni fa | 0

Risposto
Set initial value to decrement from when using a sum block loop in Simulink
Double click the Unit Delay block and set the initial value there.

circa 3 anni fa | 0

| accettato

Risposto
Not suppressable warnings in Simulink
Between fast restart simulations, you have some variables that have changed their values. But these variables are non-tunable. T...

circa 3 anni fa | 0

Risposto
open_system() not working with Model Reference
You need to get the name of the referenced model first and then open the model separately. RefModel=get_param('TOP_LEVELSystem/...

circa 3 anni fa | 1

| accettato

Risposto
error using reshape for a specific case
reshape(1:8,4,[]) reshape(1:2,4,[])

circa 3 anni fa | 0

Risposto
Displaying peaks' values on a graph
text()

circa 3 anni fa | 0

| accettato

Risposto
The variables in Simulink cannot be displayed in the workspace.
This is because the saving format in the "To Workspace" block is specified as "time series" or "data set". If the variable name ...

circa 3 anni fa | 0

Risposto
how to get respective blockpaths in 2 versions of a complex simulink model programmatically
Simulink.BlockPath

circa 3 anni fa | 0

| accettato

Risposto
error using tranpose (recieving permute error )
The error message is clear. How do you transpose a three (or more) dimension array? a=rand(2,3); a'; a=rand(2,3,4); a';

circa 3 anni fa | 0

| accettato

Risposto
Question about signal type - white arrow
That is message. https://www.mathworks.com/help/simulink/ug/simulink-messages-overview.html https://www.mathworks.com/help/sim...

circa 3 anni fa | 0

| accettato

Risposto
Use Indexing for more than 1 dimension of array simultaneously
matrix(sub2ind(size(matrix),(1:10)',idx))

circa 3 anni fa | 0

Risposto
Initializing values from workspace using embedded coder
Use the Initilize Function block https://www.mathworks.com/help/simulink/slref/initializefunction.html

circa 3 anni fa | 0

| accettato

Carica altro