Answered
why Matlab crashed when I use persistent C++ COM Object in Sfunction?
I suspect it is because your declaration of the variable |ISWrapper Iw;| goes out of scope at the end of |mdlStart|. Perhaps you...

13 years ago | 1

| accepted

Answered
Freescale: Is CodeWarrior supported by EmbeddedCoder?
I could be wrong, but according to the <http://www.mathworks.com/products/embedded-coder/supported/index.html Supported Hardware...

13 years ago | 0

Answered
convert this m file into c code using the emlc function?
Not all MATLAB functions are supported for code-generation, please see <http://www.mathworks.com/products/matlab-coder/descripti...

13 years ago | 0

Answered
DLL generation by RTW with reference to external libraries
You can add compiler options to the <http://www.mathworks.com/help/rtw/ref/code-generation-pane-general.html#bq26b5k-1 Make comm...

13 years ago | 0

| accepted

Answered
plotting graph in simulink
MATLAB might be more appropriate if you want to control the line styles. See <http://www.mathworks.com/help/matlab/creating_plot...

13 years ago | 1

Answered
Simulink.Bus and Embedded Coder
You need to specify the Bus type on the Ports and Data Manager of the MATLAB Function block, not in the MATLAB code itself. Plea...

13 years ago | 0

| accepted

Answered
how can i run simulink block since am using matlab r2012a
Could you try running "mex -setup" in MATLAB and have it automatically select a supported installed compiler? I've seen that fix...

13 years ago | 0

| accepted

Answered
Running a step by step simulation with Simulink debugger
Yes, you can stop the simulation at each time-step using the Simulink Debugger. I believe you just need to set the break in what...

13 years ago | 1

| accepted

Answered
mex a statisc library error
MEX-files are essentially shared libraries with a MEX-specific extensions. All shared libraries on Linux can only be linked agai...

13 years ago | 0

Answered
How can I use a coder.opaque value in a Matlab expression with codegen?
I don't think coder.opaque type variables can participate in MATLAB expressions. You might need to convert that expression to an...

13 years ago | 0

Answered
Simulink: Source (from workspace) running order
I'm confused about why you need a From Workspace block at all if you simply need the output of other Simulink blocks. If the sig...

13 years ago | 0

Answered
how to create a sine wave between two sine references
It seems like you just want to switch between the two signals every t/4 seconds (t=period of input wave=1/50), so you can use a ...

13 years ago | 1

Answered
How can I set block mask parameter from subsystem input
It is currently not possible to treat dialog parameters such as "Piston initial position" as an input. Please see the blog post ...

13 years ago | 1

| accepted

Answered
auto-run m-file without command prompt?
<http://www.mathworks.com/matlabcentral/answers/40013 This previously answered question> should help you create a desktop icon t...

13 years ago | 0

Answered
Calling a Delphi generated DLL fails to load in Matlab
It seems like your DLL might be 32-bit, which cannot be loaded on 64-bit MATLAB. Please see <http://www.mathworks.com/matlabcent...

13 years ago | 0

| accepted

Answered
Generating C/C++ executable for a GUI program
MATLAB Coder supports a <http://www.mathworks.com/products/matlab-coder/description2.html limited subset> of MATLAB functionalit...

13 years ago | 0

| accepted

Answered
simulink path error matlab function block
You just need to change your working directory to something that's not under Program Files: >> cd C:\some\other\path MAT...

13 years ago | 0

| accepted

Answered
The files about RTW
This is documented in the Simulink Coder (formerly Real-Time Workshop). See <http://www.mathworks.com/help/rtw/ug/files-and-fold...

13 years ago | 0

Answered
How to define a persistent array in an Embedded function
How about: persistent X; if isempty(X) X=zeros(1,5); end

13 years ago | 3

Answered
RTW : Why is errorStatus in Release 14 SP3 & R2006b is declared differently?
Not sure, but perhaps it is expected that there might be external hardware drivers that could update the errorStatus flag? I don...

13 years ago | 0

| accepted

Answered
Invalid MEX-File / Problem with shared (library) object
Is it possible that libgazebo_transport.so is a 32-bit library? Perhaps you should try using the |file| command as described <ht...

13 years ago | 0

Answered
How to set up the variable fractional delay for a flanging effect?
Try enabling <http://blogs.mathworks.com/seth/2008/10/24/r2008b-simulink-sample-time-colors/ sample time colors> for your model ...

13 years ago | 0

Answered
Calling SimMechanics which requires input variables from matlab function
You need to pass in some additional options to the SIM command to make sure that the model reads and writes to the function work...

13 years ago | 0

| accepted

Answered
How to use the Build/Reload&Run block in Simulink
My guess is that |get_param(gcb, 'UserData')| returns the name of a MATLAB script whose contents refer to specifics of the demo ...

13 years ago | 0

| accepted

Answered
How can I covert a Matlab struct 1x1 to C++ without an error?
Have you already <http://www.mathworks.com/help/coder/ug/defining-or-editing-input-parameter-type-in-a-project.html#bswmeu_-13 s...

13 years ago | 0

| accepted

Answered
matlab compiler on osx: using a matlab generated shared library
This seems to be a Mac-specific issue. I don't know too much about this, but perhaps this Technical Solution will be useful: <ht...

13 years ago | 0

Answered
How to get list of Blocks, from a model , which belongs to customized Block library ?
Perhaps you could use the <http://www.mathworks.com/help/simulink/slref/libinfo.html LIBINFO> function.

13 years ago | 1

Answered
how to make a simulink's interface with GUIDE
You can use event listeners to do this. Please see <http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simula...

13 years ago | 0

Answered
Intialization of local variables in model_step() function
What block generates the code that uses these variables? The block is responsible for initialization of these variables. If it i...

13 years ago | 0

Load more