Answered
Subsystem, library, or model referencing, when wanting unique block names?
It seems like you have the ideal use-case for creating a masked subsystem block (with the parameters that can be changed registe...

13 years ago | 2

| accepted

Answered
Simulink SFunction Interface Error: due to insufficient storage
Are you using the (Embedded) MATLAB Function block to bring your MATLAB code into Simulink? The MATLAB Function block generates ...

13 years ago | 0

Answered
How to call Matlab functions from C S functions
You can use <http://www.mathworks.com/help/techdoc/apiref/mexcallmatlab.html mexCallMATLAB>, but will need to create/destroy mxA...

13 years ago | 1

| accepted

Answered
detectin that codegen has finished
AFAIK, the codegen command is not asynchronous. Perhaps it takes a few seconds for the file system to register the new file? You...

13 years ago | 0

Answered
ssSetDWorkUsageType warning in c-mex S-function
I don't believe the warnings should affect the results of the simulation (if that were the case, you would be seeing errors, not...

13 years ago | 0

| accepted

Answered
unresolved external symbol mxDestroyArray referenced in function mexFunction
I'm assuming you have two versions of MATLAB on your 64-bit machine - one 32-bit, the other 64-bit. From what I understand, you ...

13 years ago | 0

Answered
I can't set a parameters for embedded function (now matlab function) by line command
See this previously answered question: http://www.mathworks.com/matlabcentral/answers/32490-modify-an-embedded-matlab-function-b...

13 years ago | 1

| accepted

Answered
Using a compiled matlab function in my programs.
I'd recommend looking at the <http://www.mathworks.com/help/toolbox/compiler/btdxt02-1.html examples in the documentation> to un...

13 years ago | 0

Answered
How can I choose the workspace destination ?
It might be best to keep all simulation data within your function workspace if you plan to operate on the logged outputs/states ...

13 years ago | 2

Answered
S-Function Builder Simple Integrator Implementation
Your Derivatives tab looks right, but I think you need this in your Outputs tab: y0[0] = xC[0]; Note that this is wha...

13 years ago | 2

| accepted

Answered
Simulink Support Package and Arduino Mega 1280
Did you mean the package available <http://www.mathworks.com/matlabcentral/fileexchange/24675 here>? According to the comments/d...

13 years ago | 0

Answered
I couldn't able to run Level 2 M-file S function...
You need to call setup from your top-level function: function svpwm_states(block) setup(block);

13 years ago | 1

| accepted

Answered
How to use targetinstaller for previous version of Matlab, such as R2009a, to install lego toolbox?
The targetinstaller utility was introduced with the "Run on target" Simulink feature that started shipping in R2012a - there is ...

13 years ago | 0

Answered
Integrate existing C++ code into SimuLink model
I'm not entirely sure whether you want to perform your calculations with a Simulink model or using MATLAB commands (you mentione...

13 years ago | 0

| accepted

Answered
Stand alone windows .exe crashes after using deploy tool?
Could you try running your executable from a command window (as opposed to simply double-clicking on it)? Alternatively, you can...

13 years ago | 0

Answered
RTW -> Warning: SIT 2009 Unknown data type. Constructor is enum
That error message seems to be specific to using the NI Real-Time Target (nidll.tlc) from the <http://digital.ni.com/public.nsf/...

13 years ago | 0

Answered
How to use an overloaded function from a MATLAB compiled Dll in C# via P/Invoke ?
I am assuming you use varargin in your definition of myfun.m, in order to allow a variable number of inputs? I don't know for su...

13 years ago | 1

| accepted

Answered
S-function compilation error
Is this a hand-written S-function? It looks like you might need to link against additional source files or libraries that define...

13 years ago | 1

Answered
ERROR : "Undefined function or variable 'ts'". While running the program
Your model has a block sample time set to the variable 'ts', which needs to exist in the workspace. You can create this variable...

13 years ago | 2

Answered
Using Text inside a Embedded Matlab function
As is <http://www.mathworks.com/help/toolbox/eml/ug/bq37dee.html documented here>, cell arrays are not supported for Code Genera...

13 years ago | 3

Answered
What is the difference between Signal Processing Toolbox and DSP System Toolbox R2023a?
AFAIK, DSP System Toolbox (which was introduced in R2011a) simply <http://www.mathworks.com/help/toolbox/dsp/rn/bqmfe_z-10.html#...

13 years ago | 1

Answered
fsolve in simulink model
Perhaps the (Embedded) MATLAB Function block is not right for you, because FSOLVE is not supported for code-generation. If you'r...

13 years ago | 2

| accepted

Answered
How can I run a Lego Mindstorms robot without the Simulink model option "Run on target hardware"?
Do you still see an option until Tools that says "Install/Update Package" or something to that effect? I've had the "Run on targ...

13 years ago | 0

Answered
How to read a video which is implemented by visual studio 2008 in matlab 2010?
I'm guessing that you meant to say that you have a C/C++ program that produces a video feed, which you want to make accessible t...

13 years ago | 0

| accepted

Answered
Error message in Simulink
First, I think you should tackle the error that you see with the ODE45 solver - it looks like there is a problem with your S-fun...

13 years ago | 0

| accepted

Answered
How do I get the version number of the Simulink in which the model was developed?
Please see <http://www.mathworks.com/support/solutions/en/data/1-9R4JIM/index.html How can I find out which version was used to ...

13 years ago | 4

| accepted

Answered
How to exchange the data between two seperate simulink (.mld) model
For them to exchange data, they need to be running simultaneously, correct? AFAIK, the only way to run multiple models simultane...

13 years ago | 0

Answered
Debugging a project which has mex files associated with it
Could you explain more about what you mean by "can't get to run both of them together"? I have debugged MATLAB files and C-MEX f...

13 years ago | 0

Answered
How do I cut (chop) a vector in Simulink?
Try the <http://www.mathworks.com/help/toolbox/simulink/slref/selector.html Selector> block.

13 years ago | 1

| accepted

Answered
Customizing Simulink block diagram options
It doesn't look like you can customize context (right-click) menus at this point. As per the <http://www.mathworks.com/help/rele...

13 years ago | 2

Load more