Answered
Matlab has encountered an internal problem and needs to close
Did you modify the S-function? If yes, it is likely that your code is causing a segmentation violation causing MATLAB to shut do...

15 years ago | 0

| accepted

Answered
Problem with code reusabilty of inlined S-Function // multiple referencing
Do you ensure that your S-function also meets all the other <http://www.mathworks.com/help/toolbox/rtw/ug/f76479.html requiremen...

15 years ago | 0

Answered
undefined variable, passive variable vector
I think you need the <http://www.mathworks.com/products/symbolic/ Symbolic Math Toolbox>.

15 years ago | 1

Answered
Compiling a C program to read .mat files
As per the <http://www.mathworks.com/help/techdoc/matlab_external/f19027.html documentation> you must compile using the options ...

15 years ago | 1

Answered
Setting AssemblyVersion in Builder NE generated DLL
I don't believe this functionality currently exists. Please contact Technical Support and submit an enhancement request.

15 years ago | 0

Answered
Edit msfcndemo_limintm.mdl for definite integral respect to any function not equal to time
Block derivatives in Simulink are computed w.r.t time, so it is not possible to utilize the Simulink solver to integrate w.r.t. ...

15 years ago | 0

Answered
A simulink block function for definite integral
Specifically to address the error: There are several MATLAB functions that are called "int" - you are using the function <http:/...

15 years ago | 0

Answered
Visualize matlabpool with simulink
I don't know of an existing tool that allows you to do this, but it should be fairly straightforward to write your own MATLAB co...

15 years ago | 0

Answered
FIR Simulink
This example on <http://www.mathworks.com/help/toolbox/dspblks/gs/f7-5978.html Digital Filters> may be a useful starting point f...

15 years ago | 0

Answered
how to export signal from matlab environment to working model example for block in simulink
You can use the From Workspace block to read a variable from the base workspace and output it as a signal in your model. Note th...

15 years ago | 0

| accepted

Answered
Pass array pointers in C
You should be able to pass in numeric array pointers directly (just like you would with any other C shared library). Look at the...

15 years ago | 0

Answered
EEG Signal Processing
Real-Time Windows Target and xPC Target are possible options. See <http://www.mathworks.com/support/solutions/en/data/1-AYQQZ5/i...

15 years ago | 0

Answered
Signal Acquisition
You need to first figure out what interface you will use to connect your hardware to a computer. Once you have done that, you ca...

15 years ago | 0

Answered
Can Matlab compiled file which asks for bloomberg connection can be running withou data feed toolbox?
You do need to add blpapi.jar to the Java class path. See <http://www.mathworks.com/support/solutions/en/data/1-CYKHGQ/index.htm...

15 years ago | 0

Answered
From Matlab to Simulink (alternative to Embedded MATLAB Function)
You can use the <http://www.mathworks.com/help/toolbox/simulink/slref/matlabfcn.html MATLAB Fcn> or <http://www.mathworks.com/he...

15 years ago | 2

Answered
Simulink; Without success while applying the 'Transpartent' option in the 'Edit Mask' functionality
Use the <http://www.mathworks.com/help/toolbox/simulink/slref/port_label.html port_label> function after drawing the image, to o...

15 years ago | 0

| accepted

Answered
How to implement a matlab program in FPGA?
You can use <http://www.mathworks.com/help/toolbox/simulink/slref/foriterator.html For Iterator> to implement for loops in Simul...

15 years ago | 0

Answered
Using emlc to generate C code - function within a function problem
Have you tried specifying constant inputs using emlcoder.egc: http://www.mathworks.com/help/toolbox/eml/ug/bq2wkmb-47.html#brl11...

15 years ago | 0

| accepted

Answered
How to represent a volume in Simulink which is divided into 1000 smaller volumes, i.e. discretization in time and space?
If each of the volumes (or a set of volumes) has identical properties, you may want to consider using the <http://www.mathworks....

15 years ago | 1

Answered
Embedded MATLAB FUnction as elaboration block only
As I described before, you need to pre-allocate 'y' in your code. Since in this case, y is a scalar, you can simply have: f...

15 years ago | 0

Answered
Passing parameters for C-Mex S-functions returns only Zero(0)
Could you try %f instead of %d? In this case, FLAG is of type double, but you are using a format specifier that is meant for int...

15 years ago | 1

Answered
How to enable the rapid accelerator for PLECS simulation
In order to run a model in rapid accelerator mode, C code is generated from your model and the compiled binaries are then run. T...

15 years ago | 0

Answered
S-Functions: ssWriteRTWParamSettings in mdlRTW does not work.
I wonder if the write is failing becausing SSWRITE_VALUE_NUM requires a real_T value, but you are passing in a uint8_T value. Yo...

15 years ago | 0

Answered
What is the process for building DLL's from Real-time Workshop as 64-bit rather than 32-bit?
The most reliable way is to get 64-bit MATLAB and build your models again - the reason you can't simply compile the code generat...

15 years ago | 0

| accepted

Answered
Embedded MATLAB FUnction as elaboration block only
From what I understand, I think the real reason may be because you do not pre-allocate memory for the output. See <http://www.ma...

15 years ago | 0

Answered
Mex Error: undeclared identifier What does this mean?
This looks like <http://www.mathworks.com/support/bugreports/661855 Bug#661855>. Install the patch to fix the issue.

15 years ago | 0

| accepted

Answered
Producing Embedded Controller using RealTime Workshop
Did you make sure that you have transported all files for building on another target? See <http://www.mathworks.com/help/toolbox...

15 years ago | 0

| accepted

Answered
Test Harness for a Model
If you are looking for a formalized way to do this, <http://www.mathworks.com/products/systemtest/ SystemTest> is what you're lo...

15 years ago | 0

Answered
Matrix extension in Simulink Embedded doesn't work, in Workspace does
In versions older than R2010b, you cannot dynamically extend the size of a matrix in Embedded MATLAB. Therefore, you will need t...

15 years ago | 0

| accepted

Answered
converting vector<vector<double>> to mwArray
Did you have a typo calling SetData? mwArray mymtrx(2, 2, mxDOUBLE_CLASS); mymtrx.SetData(&myvect[0][0], 4);

15 years ago | 0

Load more