답변 있음
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...

2년 초과 전 | 0

답변 있음
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 ...

2년 초과 전 | 0

답변 있음
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...

2년 초과 전 | 0

| 수락됨

답변 있음
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 ...

2년 초과 전 | 0

답변 있음
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...

2년 초과 전 | 0

답변 있음
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 ...

2년 초과 전 | 0

답변 있음
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;...

2년 초과 전 | 0

| 수락됨

답변 있음
transform the cell (50x95 cell) into the matrix 'in' (50x95x3 uint8)
cell2mat(out)

2년 초과 전 | 0

| 수락됨

답변 있음
How to Add several stateflow chart to a exist simulink model programtically
add_block()

2년 초과 전 | 0

| 수락됨

답변 있음
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. ...

2년 초과 전 | 0

답변 있음
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.

2년 초과 전 | 0

| 수락됨

답변 있음
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...

2년 초과 전 | 0

답변 있음
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/...

2년 초과 전 | 1

| 수락됨

답변 있음
error using reshape for a specific case
reshape(1:8,4,[]) reshape(1:2,4,[])

2년 초과 전 | 0

답변 있음
Displaying peaks' values on a graph
text()

2년 초과 전 | 0

| 수락됨

답변 있음
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 ...

2년 초과 전 | 0

답변 있음
how to get respective blockpaths in 2 versions of a complex simulink model programmatically
Simulink.BlockPath

2년 초과 전 | 0

| 수락됨

답변 있음
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';

2년 초과 전 | 0

| 수락됨

답변 있음
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...

2년 초과 전 | 0

| 수락됨

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

2년 초과 전 | 0

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

2년 초과 전 | 0

| 수락됨

답변 있음
how do i implement these blocks?
Double click the block in Simulink. The dialog appeared will show the block type. If it's still not clear, click the "Help" butt...

2년 초과 전 | 0

| 수락됨

답변 있음
Help with comparing strings from cells
A{1,5} itself is a cell. Do the following class(A{1,5}) isequal(char(A{1,5}),'FIRING') A{1,5}{1}

2년 초과 전 | 0

| 수락됨

답변 있음
i am trying to display the dialog parameters of all blocks in a simulink model. But i am not getting the exact result. Can anyone help me in this?
"paramValue" turns to be a struct. All its field values are struct, so your code ends up running this line for all iterations. ...

2년 초과 전 | 0

| 수락됨

답변 있음
How to insert an input in a constant in simulink?
Use the "Assignment" block to assign values to specified elements of a multi-dimensional signal.

2년 초과 전 | 0

답변 있음
Changing size of variable inside Matlab function in SIMULINK
Use variable size data. It can be done but a little tricky. https://www.mathworks.com/help/releases/R2022b/simulink/ug/declare-...

2년 초과 전 | 0

| 수락됨

답변 있음
Is there a way to set the default behavior for `format` statement?
no big deal. Put that in a startup.m file Also, set it in MATLAB Preference, Command Window, Text Display

2년 초과 전 | 1

답변 있음
Single plot title line with multiple text interpreters?
title( [ 'HSRL2 Ocean b_b_p Retrieval From' , strrep(filenameHBW,'_','\_') ] )

2년 초과 전 | 2

답변 있음
how to add several inport to the buscreator
set_param('untitled/BusCreator','Inputs','3'); add_line('untitled','Inport/1','BusCreator/1') add_line('untitled','Inport1/1',...

2년 초과 전 | 0

| 수락됨

답변 있음
Simulation status is stopped but I cannot start new simulation from script because Matlab assumes it is still running
Might it be too fast to re-start the simulation? There could be some post-simulation processing going on. Anyway, in the M-scri...

2년 초과 전 | 0

더 보기