Answered
Connecting simElectronic blocks -- get red dotted line
See this previous answer: http://www.mathworks.com/matlabcentral/answers/7542-link-between-blocks You are making connections ...

14 years ago | 2

Answered
s-function and input data
To access the S-function input data, you need to have access to the Simstruct pointer (the S argument in all S-function callback...

14 years ago | 1

| accepted

Answered
what does Simulink.Blockdiagram.getInitialState do
Simulink.BlockDiagram.getInitialState is a p-coded function, so you cannot look into it. However, the way you are calling it mak...

14 years ago | 0

Answered
vhdl/verilog simulink
Provided that you already have HDL simulator software like ModelSim or Incisive installed, you can use <http://www.mathworks.com...

14 years ago | 0

Answered
deploying simulink..possible or not?
You need <http://www.mathworks.com/products/simulink-coder/index.html Simulink Coder> to generate standalone C/C++ code from Sim...

14 years ago | 0

Answered
How to find number of blocks in a simulink model
See <http://www.mathworks.com/help/toolbox/simulink/slref/sldiagnostics.html sldiagnostics>

14 years ago | 2

| accepted

Answered
Delaying an enumerated signal
What have you entered as the Initial Conditions value on the block? If it is the default of '0', you need to change that to an e...

14 years ago | 4

| accepted

Answered
How to interface simulink model file after converting in to exe file
Did you use MATLAB Compiler to generate an EXE for your MATLAB code? MATLAB Compiler does not support Simulink functionality. Wh...

14 years ago | 1

| accepted

Answered
matlab coder--error while converting .m file.
You need to define your MATLAB code as a function (it appears what you have now is a script). See <http://www.mathworks.com/help...

14 years ago | 0

| accepted

Answered
How to speed up the simulation?
Regarding the second question, you only need to load your model using load_system - this will load it into memory, but not open ...

14 years ago | 0

| accepted

Answered
Compiler properties for building MEX-files
Perhaps you should build your code in the Visual Studio IDE directly. See <http://www.mathworks.com/help/techdoc/matlab_external...

14 years ago | 1

Answered
How to compile model and generate code using simulink coder through C# .Net application?
How are you interfacing with MATLAB from your .NET application? Are you invoking <http://www.mathworks.com/help/techdoc/matlab_e...

14 years ago | 1

Answered
Invalid MEX file...cannot dynamically load executable OR -shared option in MEX causes "bad values" in compiling and linking
What library are you attempting to load dynamically? Is it radsrc.a? The .a extension suggests that this is an archive, not a sh...

14 years ago | 2

| accepted

Answered
FI data type NOT operator?
You can use BITCMP: tst = fi(5, numerictype(0,4,0)) tst_not = bitcmp(tst)

14 years ago | 1

Answered
Random Integer with "smooth transition" in Simulink
You may find the <http://www.mathworks.com/help/toolbox/simulink/slref/ratelimiter.html Rate Limiter> block useful.

14 years ago | 2

Answered
How to change the path when using VBA macro to run .m file
You need: Call MatLab.Execute("cd 'C:\Documents and Settings\M02043\Desktop\Test'") The CD command doesn't like spaces ...

14 years ago | 1

Answered
Animated Vectors Plot with data coming from Simulink (WITH EXPLAINING IMAGES)
The webpage that you pointed to uses Adobe Flash to achieve with the animation - I don't know of a way to generate Adobe Flash f...

14 years ago | 1

| accepted

Answered
Passing DataTypes from MatLab to C#
See <http://www.mathworks.com/help/techdoc/matlab_external/brxe1ww-1.html Using Arrays with .NET Applications>

14 years ago | 1

Answered
Deploytool C++ shared library
See <http://www.mathworks.com/help/toolbox/compiler/f2-995712.html#f2-1009231 C++ Shared Library Example>

14 years ago | 0

Answered
value that increase along with changing value by manual switch block simulink using embedded matlab function
FWIW, here's an EML implementation: function y = mycounter(u) %#eml persistent count; persistent prevInput; ...

14 years ago | 1

Answered
Simulink Fixed Step Size Discrete Compiler - two different step sizes in .cpp file?
You probably have blocks in your model that have a sample time of 1s (blocks in a model with a fixed-step solver can have a samp...

14 years ago | 1

| accepted

Answered
Code Gen with Embedded coder
You could simply write a TLC script for the S-function (see <http://www.mathworks.com/help/toolbox/rtw/tlc/f33688.html Inlining ...

14 years ago | 0

| accepted

Answered
Problem using Embedded MATLAB Fcn Block in Simulink?
Provided that the From Workspace block is producing a 1x2 signal of the form [time value], you can use the Demux block to separa...

14 years ago | 0

| accepted

Answered
Where is the description of the content of a Simulink MDL file?
I'm not sure where that documentation is. Perhaps it has been removed from later releases because it got difficult to maintain? ...

14 years ago | 0

Answered
Taget function library error.
Is it the same error as <http://www.mathworks.com/support/solutions/en/data/1-CQA00S/index.html?product=ML&solution=1-CQA00S thi...

14 years ago | 0

| accepted

Answered
modify the pulse width of a pulse generator
Ah! This is the old question <http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-output-o...

14 years ago | 0

Answered
Retrieving Parameter Names for custom checks in Simulink Model Advisory
Select a Rate Transition block and run the following in the command window: get_param(gcb, 'DialogParameters') ans = ...

14 years ago | 1

Answered
Changing Tunable parameters from inside the model
See <http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-output-of-another-block/ How Do I...

14 years ago | 0

Answered
Hold True Value for finite length of time
An important thing to keep in mind when modeling in Simulink is that blocks run according to their sample time (see <http://blog...

14 years ago | 0

Answered
Loading a DLL in MATLAB through JAVA
As the error suggests: Undefined function or variable 'epanet2_proto' You need to add the prototype file epanet2_proto.m...

14 years ago | 1

Load more