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

etwa 13 Jahre vor | 2

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 1

| akzeptiert

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

etwa 13 Jahre vor | 1

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 1

| akzeptiert

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

etwa 13 Jahre vor | 1

| akzeptiert

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 2

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

Mehr laden