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

alrededor de 15 años hace | 2

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 4

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 2

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

Cargar más