Answered
How to run a Simulink model with single precision?
Typically the data type is propagated from the Source blocks in the model - if you configure these blocks to produce a single ty...

12 years ago | 0

Answered
Simultaneous output from Simulink on Arduino Uno
The model that you have is already writing to multiple pins simultaneously. Unless, you mean that since the writes happens in a ...

12 years ago | 0

Answered
Discrete S function error
Please read <http://www.mathworks.com/matlabcentral/answers/36663-what-are-continuous-and-discrete-states-in-simulink this previ...

12 years ago | 0

Answered
How to simulate LEGO mindstorms NXT in MATLAB/SIMULINK?
Please see <http://www.mathworks.com/hardware-support/lego-mindstorms-simulink.html LEGO MINDSTORMS NXT Support from Simulink>.

12 years ago | 0

Answered
compiling a cpp function into a mex, then compiling that mex into a matlab exe (w/ other matlab code). What about the dll, h, and .lib files? And loadlibrary will not cut it in this case.
I doubt that MATLAB Compiler will be able to determine automatically that the DLL is a required dependency. You can try adding t...

12 years ago | 0

Answered
TI CCS Cross Compiler MEX
The command TICCS has nothing to do with the MEX-compiler. If "mex -setup" cannot locate any supported compilers, you need to in...

12 years ago | 1

Answered
Matlab function Interface Error
Signals that change size during simulation are called <http://www.mathworks.com/help/simulink/ug/variable-size-signal-basics.htm...

12 years ago | 0

| accepted

Answered
Why multi-thread jobs are created when i complie my signle process code using mcc in linux machine?
Try using the -singleCompThread option with mcc: >> mcc -R -singleCompThread -m foo.m

12 years ago | 0

| accepted

Answered
Non inlined S function in a protected model
According to the <http://www.mathworks.com/help/simulink/ug/using-s-functions-with-model-referencing.html#bsp24qn-7 documentatio...

12 years ago | 0

Answered
How to create a S-Function
Please see <http://www.mathworks.com/help/simulink/sfg/integrating-existing-c-functions-into-simulink-models-with-the-legacy-cod...

12 years ago | 0

Answered
Problem while repeating what is done in Stateflow tutorial
Please see if this <http://www.mathworks.com/matlabcentral/answers/40031 previous discussion> helps.

12 years ago | 0

| accepted

Answered
Error using mex (line 206) Unable to complete successfully. Caused by: Error using cd Cannot CD to C:\Users\MOHANK~1\AppData\Local\Temp (Name is nonexistent or not a directory).
The error: Caused by: Error using cd Cannot CD to C:\Users\MOHANK~1\AppData\Local\Temp (Name is nonexistent or not a direct...

12 years ago | 0

| accepted

Answered
RTW s function for different behavior
To get the alternative behavior, you can write a MATLAB/C S-function with a TLC file. The MATLAB/C code defines the simulation b...

12 years ago | 0

Answered
Display updated values in GUI during simulink model runtime
Yes, this is possible. Please see <http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html Access ...

12 years ago | 0

| accepted

Answered
Error in port widths or dimensions. Output port 1 of 'xxx/From File' is a one dimensional vector with 1 elements.
The data in the file needs to be a certain format (first row is treated as time samples, following rows as data). Make sure you ...

12 years ago | 1

Answered
simulink random sequence generation
According to the documentation for <http://www.mathworks.com/help/matlab/ref/randn.html randn>, you need to use the function |rn...

12 years ago | 0

Answered
How can I remove the error?
As the error message suggests, you need to run the |mex -setup| command to select a C compiler. If the utility does not automati...

12 years ago | 0

| accepted

Answered
How to read address locations using s-functions?
You can write standard ANSI C-code in S-functions, so you'll need to ask the vendor for a C/C++ API to access those locations, a...

12 years ago | 0

| accepted

Answered
Developing Blocksets for Embedded devices
Please see <http://www.mathworks.com/help/ecoder/target-extensions.html Target Development> for documentation on this.

12 years ago | 0

| accepted

Answered
Extract data from file and split using Demux in simulink
So does that mean you need to split your data into 8 parts (since you have a total of 40 elements in your imported signal)? If y...

12 years ago | 0

Answered
dec2bin is not working in Embedded Matlab Function Block
You may find this previous discussion useful: <http://www.mathworks.com/matlabcentral/answers/28501 Binary to Decimal conversion...

12 years ago | 0

Answered
mclmcrt710 error while running .exe matlab file
# You need to install a <http://www.mathworks.com/support/compilers/R2009b/ Supported Compiler> (look under your platform, and e...

12 years ago | 0

Answered
Access is Denied error
Try changing your current working directory to something that's not under C:\windows.

12 years ago | 1

Answered
ERROR: Dimension _ is fixed on the left-hand side but varies on the right. How to solve this?
Could you also ensure that the parameter "Tunable" checkbox is unchecked on the MATLAB Function block's <http://www.mathworks.co...

12 years ago | 0

| accepted

Answered
How to use Eclipse to debug mex files?
You might instructions here useful: <http://www.mathworks.com/help/matlab/matlab_external/debugging-c-c-language-mex-files.html#...

12 years ago | 1

Answered
Running external m-file during simulation
I would recommend that you use the <http://www.mathworks.com/help/simulink/slref/toworkspace.html To Workspace> block if you nee...

12 years ago | 0

Answered
Error due to variable size data in Matlab function block
Since your signal changes size at run-time, <http://www.mathworks.com/help/simulink/variable-size-data.html configuring the MATL...

12 years ago | 1

| accepted

Answered
How to create an executable using mcc for with multiple mex files?
If PMIA.m already calls into the MEX-files, I think MATLAB Compiler should package the compiled MEX-files automatically into you...

12 years ago | 0

| accepted

Answered
Composite Signal to MATLAB Function Block
I presume you are using the (Interpreted) MATLAB Function block. You can use the <http://www.mathworks.com/help/simulink/slref/m...

12 years ago | 0

Answered
Compiling old f90 file with matlab r2010a
According to the <http://www.mathworks.com/help/matlab/release-notes-older.html Release Notes for R2006a>, |mxIsString| is repla...

12 years ago | 0

Load more