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

fast 15 Jahre vor | 2

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 2

| akzeptiert

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

fast 15 Jahre vor | 4

| akzeptiert

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 2

| akzeptiert

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 2

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

Mehr laden