Answered
How does the maximum and minimum step size affect the simulation of a model?
It appears that you are using a Variable-step solver, please read <http://www.mathworks.com/help/simulink/ug/choosing-a-solver.h...

13 years ago | 2

Answered
S functions. Creating a Simulink Block, failing at returning a pointer to an array (S-functions)
I think you need to re-write |moving_sum| as the following: void moving_sum(double ptr[], static unsigned int n_avg, doub...

13 years ago | 0

| accepted

Answered
Matlab standalone executable run on computers which don't have matlab installed
As Sean mentioned, if the target machines have the MCR installed, you can use the MATLAB Compiler product to create standalone a...

13 years ago | 1

Answered
Determine Path of Mex S function from the C/C++ mex code
In MATLAB, you can look up the full path to any given file using the MATLAB function <http://www.mathworks.com/help/matlab/ref/w...

13 years ago | 1

| accepted

Answered
What are the Simulink Coder limitations?
I know that the "Block Data Type Support Table" has a column for "Code Generation Support" which indicates when there are except...

13 years ago | 1

| accepted

Answered
Simulink :: Change the number of continous-states during simulation
No, the number of states (continuous/discrete) needs to be configured in the |setup| method, and cannot change during simulation...

13 years ago | 0

Answered
Problem in writing TLC file for Matlab Level2 M file s function
No, you do need to write a TLC file to generate code from a MATLAB S-function. If your algorithm is simple enough to write as a ...

13 years ago | 0

| accepted

Answered
Code Generation Questions for Simulink
# Yes, you can customize the <http://www.mathworks.com/help/ecoder/ref/code-generation-pane-templates.html source/header file te...

13 years ago | 0

Answered
Guidelines to port Simulink Code to specific Target (Custom Machine)
Yes, you are correct on both points. You may want to refer to the documentation on <http://www.mathworks.com/help/rtw/target-ext...

13 years ago | 1

| accepted

Answered
How to invert the index of a vector in Simulink?
If you have the DSP System Toolbox installed, you can use the <http://www.mathworks.com/help/dsp/ref/flip.html Flip> block to fl...

13 years ago | 1

| accepted

Answered
how can I replace a block?
Please see <http://www.mathworks.com/help/simulink/slref/replace_block.html replace_block>.

13 years ago | 1

Answered
Matlab/Simulink with Google Analytics?
Not sure, but if you know of equivalent MATLAB/C APIs, you can create your own <http://www.mathworks.com/help/simulink/ug/types-...

13 years ago | 0

Answered
how to make simulink matlab function work
In this case, the output signal of the block has varying dimensions (ie. size changes during execution of the model). Such signa...

13 years ago | 2

Answered
Can we generate macro function in code, using simulink model and RTW EC auto coder ?
The closest thing that I can think of is to increase the <http://www.mathworks.com/help/simulink/gui/optimization-pane-signals-a...

13 years ago | 0

Answered
functions not supported by simulink coder
Unfortunately, this function is not in the <http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--a...

13 years ago | 0

Answered
Help with Simulink system?
Based on your problem description, it seems like <http://www.mathworks.com/products/simevents/ SimEvents> is the right product f...

13 years ago | 0

| accepted

Answered
Error using set_param to set parameters for LUT from inside a function in GUI
I think the issue may be that most Simulink parameters need to be set as strings when using set_param. For example, this won't w...

13 years ago | 0

Answered
Matlab simulink GUI interface
Yes, you can use the <http://www.mathworks.com/support/tech-notes/1900/1903.html Simulink command-line API> to call into your mo...

13 years ago | 0

Answered
missing headers and typedef in code generated by embedded coder from Simulink
Please see <http://blogs.mathworks.com/seth/2008/11/26/wheres-the-code/ this blog post> to see how you can collect all the requi...

13 years ago | 0

Answered
What's the procedure for submitting suggested improvements for future releases?
Create a Service Request with the details of your request and license & version information from this page: http://www.mathworks...

13 years ago | 0

| accepted

Answered
For SIMULINK level-1 S function how to address two inputs which are matrices
Since Level-1 MATLAB S-functions only have one input, you'll need to concatenate A and B to supply them as the input. Your index...

13 years ago | 0

| accepted

Answered
How to communicate with Simulink from within a function?
Please see my answer to a similar question <http://www.mathworks.com/matlabcentral/answers/52227 here>.

13 years ago | 0

| accepted

Answered
Use input vector S-function to define initial conditions x0()
No, this is not possible. At the time that the block Initialize method runs, none of the block's Output methods have fun. So wha...

13 years ago | 0

Answered
call MEX-Funcion in a simulink userdefined block
MEX-functions can essentially be called just like any other MATLAB function. Please see the available <http://www.mathworks.com/...

13 years ago | 1

Answered
Use of idss data in a level-2 S-function
You cannot output this datatype from your S-function, but please see the following discussions for help with implementing the al...

13 years ago | 0

Answered
Simulink Dataset - Saving and Loading back into Simulink
It seems like you should be able to import that data back into another model using the <http://www.mathworks.com/help/simulink/u...

13 years ago | 0

Answered
Calling Simulink from C code
You can use the <http://www.mathworks.com/support/tech-notes/1900/1903.html Simulink command-line interface> to invoke Simulink ...

13 years ago | 0

Answered
How do I feed data into a simulink model from a .m file?
You can either use a <http://www.mathworks.com/help/simulink/slref/fromworkspace.html From Workspace> block or <http://www.mathw...

13 years ago | 0

Answered
newbie in simulink model
How about a <http://www.mathworks.com/help/simulink/slref/logicaloperator.html NOT> block followed by a <http://www.mathworks.co...

13 years ago | 0

Answered
how to integrate arduino with MATLAB?
<http://www.mathworks.com/support/solutions/en/data/1-HCE464/index.html?solution=1-HCE464 This page> has information about what ...

13 years ago | 0

Load more