Answered
how to create equation from continuous state of s-function results
If you need to run your S-function in continuous-time, you should denote dl and dk as continuous states, and return their values...

14 years ago | 0

Answered
integration using s-functions in simulink
<http://www.mathworks.com/help/toolbox/simulink/slref/simulink.msfcnruntimeblock.html#f29-117803 block.DialogPrmsTunable> must b...

14 years ago | 0

Answered
Switch "smoothly" between two signals without introducing discontinuities?
You can insert a <http://www.mathworks.com/help/toolbox/simulink/slref/ratelimiter.html Rate Limiter> block following the Switch...

14 years ago | 0

Answered
Block Simulation TIme
You could try the <http://www.mathworks.com/help/toolbox/simulink/ug/f0-7640.html Simulink Profiler>.

14 years ago | 0

| accepted

Answered
call function from share dll using .net
Yes, if you used MATLAB Compiler to generate the shared library, you can call into it from a machine that has only MATLAB Compil...

14 years ago | 0

Answered
well,i need to develop a motion control card driver in simulink,could you tell me what should do?
There is a tool called the Legacy Code Tool that can generate the S-function for your automatically. See <http://www.mathworks.c...

14 years ago | 1

Answered
s function integration
In your S-function file, you probably have a line that reads like this: block.NumDialogPrms = 3; This means that the bl...

14 years ago | 0

Answered
Accessing a dll from outside of Matlab, using visual studio and c++
What you're asking is not really a MATLAB/Simulink-related question (although I understand that you need to do this to be able t...

14 years ago | 0

| accepted

Answered
Can you unbuffer a matrix in Simulink without incurring a timestamp on the output?
Try using the <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/reshape.html Reshape> block to convert your ...

14 years ago | 0

| accepted

Answered
Top-level approach to Simulink parameter study
The <http://www.mathworks.com/products/systemtest/ SystemTest> product seems exactly what you need. Check out some <http://www.m...

14 years ago | 1

| accepted

Answered
Re Database Toolbox: "Arithmetic overflow error converting numeric to data type numeric"
I don't know anything about SQL, but doesn't decimal(18,18) mean that you can have zero digits before the decimal point, and 18 ...

14 years ago | 0

Answered
Two Step functions in Different Times , or reset a subsystem block
Perhaps your control signal to the Enabled Subsystem enables it immediately? Make sure that the control signal is enabled only a...

14 years ago | 0

Answered
How to stop a function? Simulink.
I think you need to out your M-file inside an <http://www.mathworks.com/help/toolbox/simulink/ug/f4-84107.html Enabled Subsystem...

14 years ago | 0

Answered
s-function to perform integration & differentiation
Are you writing MATLAB-file S-functions? If so, I would recommend looking at examples by opening up: >> sfundemos And ...

14 years ago | 1

Answered
Create the matlab 2006b exe for .net application
You can use <http://www.mathworks.com/products/netbuilder/ MATLAB Builder NE> to generate .NET components from MATLAB code (you ...

14 years ago | 0

Answered
Simulink - swapping inputs horizontally
Did you mean the <http://www.mathworks.com/help/releases/R2011b/toolbox/dsp/ref/flip.html Flip> block from the DSP Toolbox? If y...

14 years ago | 0

Answered
UNIX bash shell in an m file?
Yes, I think that is exactly how you would do it. Are you running into any trouble doing that?

14 years ago | 0

Answered
Making cpp code from Mfile.
You need to link against liba.lib, and add the directory containing liba.dll to the system PATH. See <http://www.mathworks.com/h...

14 years ago | 0

| accepted

Answered
Create DLL's for Embedded Matlab Function
If you have an Embedded Coder license, you can use ert_shrlib.tlc to generate a DLL from your Simulink model. See <http://www.ma...

14 years ago | 0

Answered
Regarding RTW
The command to generate code from a model is rtwbuild(model), not make_rtw(model).

14 years ago | 1

| accepted

Answered
using .m file in simulink model
To call MATLAB code from a Simulink model, use one of the three <http://www.mathworks.com/help/toolbox/simulink/ug/bq3qblc-1.htm...

14 years ago | 1

Answered
Simulink: setting different random number generator seeds even when using past SimState
AFAIK, only tunable parameters can be changed in a simulation restored from a previously stored SimState. From what I can see, t...

14 years ago | 0

| accepted

Answered
xpc parameter passing and recording
# See the xPC documentation on <http://www.mathworks.com/help/releases/R2011b/toolbox/xpc/ug/f6-31896.html Parameter Tuning> to ...

14 years ago | 1

| accepted

Answered
Combine Two Signals Simulink
One way that you could achieve what you need is to delay your modulated data using the <http://www.mathworks.com/help/toolbox/si...

14 years ago | 0

| accepted

Answered
Using C++ shared library created by R2011b with Visual Studio 2010
Are you using 64-bit MATLAB? If yes, you may need to configure your Visual Studio project for an x64 target (by default, Visual ...

14 years ago | 0

Answered
Matlab (2011b) compiler doesn't compile
A previous user posted about a similar error here: http://www.mathworks.com/matlabcentral/answers/27493-building-standalone-appl...

14 years ago | 0

Answered
maximum block
Try the <http://www.mathworks.com/help/toolbox/simulink/slref/minmax.html MinMax> block.

14 years ago | 0

Answered
How to Use Microsoft Access ODBC drivers for Vista x64/ Windows 7 x64
Do you have 32-bit Access installed? In that case you need to install <http://www.mathworks.com/support/solutions/en/data/1-579T...

14 years ago | 0

| accepted

Answered
Specifying discrete sample time for variable-size signals
As TAB indicates in his/her comment, it is likely that the input signal has a continuous sample time. The Assignment block inher...

14 years ago | 0

Answered
custom built transfer function block in simulink
The "s" is a derivative term, so why not just use the <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/deri...

14 years ago | 0

Load more