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

alrededor de 14 años hace | 2

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 1

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 1

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 2

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

alrededor de 14 años hace | 2

| aceptada

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

alrededor de 14 años hace | 0

Respondida
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);

alrededor de 14 años hace | 1

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 1

| aceptada

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

alrededor de 14 años hace | 1

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

alrededor de 14 años hace | 2

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

alrededor de 14 años hace | 3

Respondida
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#...

alrededor de 14 años hace | 1

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

alrededor de 14 años hace | 2

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 4

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 1

| aceptada

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

alrededor de 14 años hace | 2

Cargar más