Risposto
Integrating MATLAB generated c-code in Visual Studio
If you are using MATLAB Coder, the generated code will be completely independent of MATLAB run-time libraries. However, not all ...

oltre 12 anni fa | 0

| accettato

Risposto
Simulink model argument (for model referencing) with unknown array size
I don't think there is a workaround for this situation. The sizes and types of parameters cannot change after compilation. Howev...

oltre 12 anni fa | 0

Risposto
Which function to use to simulate a Model from a library?
Please look at the documentation for <http://www.mathworks.com/help/ecoder/ug/creating-and-using-host-based-shared-libraries.htm...

oltre 12 anni fa | 0

Risposto
Plot x-axis and y-axis with mexCallmatlab
You need to use the |plot(x,y)| form of <http://www.mathworks.com/help/matlab/ref/plot.html PLOT>: // Copy freq into an mx...

oltre 12 anni fa | 0

| accettato

Risposto
Is it possible to add Simulink blocks in a Model using m-scripts?
Yes, this is possible. Please see the list of Simulink command-line functions <http://www.mathworks.com/help/simulink/functionli...

oltre 12 anni fa | 0

| accettato

Risposto
What blocks do I need to to use to build such a system?
Since it appears that you know how to define your system in the form of ODEs, you may find this blog post helpful: <http://blogs...

oltre 12 anni fa | 0

| accettato

Risposto
s-function link error when build for rtw, dspace ?
To add custom S-function related build rules for code generation, you need to implement a <http://www.mathworks.com/help/rtw/ug/...

oltre 12 anni fa | 0

Risposto
How can I incorporate a S-function in Simulink so that it executes a code written in MATLAB?
You can call the function using any one of <http://www.mathworks.com/help/simulink/ug/types-of-custom-blocks.html#bq3t2zz three ...

oltre 12 anni fa | 0

Risposto
How to call dll in mex?
This seems like more of a C/C++ programming question, than a MATLAB-specific question. A MEX-file is like any other C-file which...

oltre 12 anni fa | 0

Risposto
c++ shared library startup options
It looks like specifying the -singleCompThread option during compilation should also work. For example: >> mcc -R -singl...

oltre 12 anni fa | 0

Risposto
How can I interface a set of 32-bit hardware registers with a Simulink Model generated using Simulink encoder?
You can use C-MEX S-functions to create custom driver blocks that call into your C driver code. Please use the <http://www.mathw...

oltre 12 anni fa | 0

| accettato

Risposto
Plot from C Mex function and C types
I would recommend looking at the documentation for <http://www.mathworks.com/help/matlab/apiref/mxcreatedoublematrix.html mxCrea...

oltre 12 anni fa | 0

| accettato

Risposto
Alter values of variables in mexFunction from within a subfunction
You probably need to do this: /* Copy the outputs of minf into a and b */ *a = *(mxGetPr(outp[0])); *b = *(mxGetPr(...

oltre 12 anni fa | 1

| accettato

Risposto
Output type definition for extrinsic function (polyxpoly) in Simulink
Since the Embedded MATLAB block uses static memory allocation, it cannot handle variables that change size dynamically. What you...

oltre 12 anni fa | 2

| accettato

Risposto
How do I create stub functions in simulink for legacy code?
I think the right way to do what you want to achieve is to create a DLL for your external C-functions and load it dynamically fr...

oltre 12 anni fa | 0

Risposto
How to create a standalon exe of mfile including mexfunction?
Since you would like to compile a MEX-function, which needs MATLAB runtime libraries to be executed, the right choice would be f...

oltre 12 anni fa | 0

| accettato

Risposto
Real-Time Workshop use Embedded Matlab Function to generate random numbers
Here is the current list of <http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--alphabetical-lis...

oltre 12 anni fa | 0

| accettato

Risposto
Is there a tool to generate a bus object from an IDL file?
If you can produce MATLAB structures from the IDL file, you can use <http://www.mathworks.com/help/simulink/slref/simulink.bus.c...

oltre 12 anni fa | 0

Risposto
Dynamically populating mask parameter popup list
I'm not much of an expert in the Simulink Mask area, but I don't think you can dynamically change the contents of a mask. Howeve...

oltre 12 anni fa | 0

Risposto
How setup Xilinx System Generator in Matlab
You might have better luck with this question on Xilinx Support forums, since System Generator is a Xilinx product.

oltre 12 anni fa | 0

| accettato

Risposto
Use of Arrays in Simulink
Perhaps you can <http://www.mathworks.com/help/simulink/slref/bitwiseoperator.html AND> all the bits in the array together?

oltre 12 anni fa | 0

Risposto
Problem in using Fsolve in Simulink
Are you able to run |fsolve| with similar input arguments (as passed in from the Interpreted MATLAB Function block) outside of S...

oltre 12 anni fa | 0

Risposto
Converting mxArrays to libpointer in MATLAB block
I would recommend that you move all creation/extraction of libpointers also inside an extrinsic function, and have only builtin ...

oltre 12 anni fa | 0

| accettato

Risposto
Whenever I run a simulink model which involves embedded math function I get this message. I am using Matlab R2012a on mac OS
You may want to look at <http://www.mathworks.com/matlabcentral/answers/18593-gcc-4-2-not-found this previously answered questio...

oltre 12 anni fa | 0

Risposto
Running a Subsystem in a function as iteration in simulink
How about using a <http://www.mathworks.com/help/simulink/slref/whileiteratorsubsystem.html While Iterator Subsystem> inside an ...

oltre 12 anni fa | 0

Risposto
Saving variable of selected value from simulink matlab fcn to workspace
Is there a reason the value needs to be stored to the MATLAB workspace? You could either use a <http://www.mathworks.com/matlabc...

oltre 12 anni fa | 0

Risposto
S-Function Builder Block referencing .dll
DLLs are typically only used at run-time, not compile-time (the information you put in the S-function Builder is used to compile...

oltre 12 anni fa | 1

| accettato

Risposto
Serial Port in RTWT (s-function)
Ah! I think it might be because you are not configuring the number of PWorks on the S-function as described <http://www.mathwork...

oltre 12 anni fa | 0

Risposto
Regarding Code generation error
It does say on the <http://www.ti.com/tool/SPRC215 F280x Digital Motor Control Library> Download page: These component modu...

oltre 12 anni fa | 0

Risposto
In S function it is required to include the .c file that is having the defination of the function?
Yes, you do need to link against the object files of A(), B() and C() in addition to XYZ.c. How are you compiling XYZ.c in Visua...

oltre 12 anni fa | 0

Carica altro