Answered
variable size matrix error in matlab function block
You need to enter the maximum size of variable-size signals by checking the "Variable size" box and entering the size in the "Si...

12 years ago | 0

| accepted

Answered
problem in simulink connections..??
It looks like one of your blocks works with physical signals, but the other using regular Simulink signals. You will need to use...

12 years ago | 0

Answered
Data analysis of a diesel generator in simulink
If you're question is about importing Excel data into Simulink, please see: http://www.mathworks.com/matlabcentral/answers/6316-...

12 years ago | 0

Answered
Build s function from external m file
See this previously answered question: <http://www.mathworks.com/matlabcentral/answers/37221-sfunction-builder-function-through-...

12 years ago | 0

Answered
i have data in m.file..how to put the data in simulink
You can use the |PreLoadFcn| model callback to call your MATLAB file that creates the data. Please see <http://www.mathworks.com...

12 years ago | 1

Answered
How to edit slblocks.m to create custom library and sub-library?
You need to create a new slblocks.m in the same folder as your library, and add the folder to the MATLAB path. See <http://www.m...

12 years ago | 0

| accepted

Answered
S funtion block inputs
If the (25 or so) variables do not change during run-time, you might want to make them parameters of the S-function.

12 years ago | 0

Answered
How to deal with functions that are not supported in HDL coder?
If you are using |coder.extrinsic| to call a function in your MATLAB code, it is likely that the function is not supported for c...

12 years ago | 0

| accepted

Answered
coder.excentric not working when compiling with TwinCat Target
You can either implement the functionality yourself in C, or find a third-party library that does so, and call it in your MATLAB...

12 years ago | 0

Answered
S-Function containing C-code file
Did you also re-name the |S_FUNCTION_NAME| macro in the C-file? #define S_FUNCTION_NAME timestwo1 Also, note that Simul...

12 years ago | 0

Answered
Problem with Matlab Compiler and .txt files
Could you try specifying the full path to fich_poids.txt and see if that helps? You can also read <http://blogs.mathworks.com/lo...

12 years ago | 0

Answered
How to make a standalone executible with calls to simulink and state flow?
Please see <http://www.mathworks.com/matlabcentral/answers/97161-how-can-i-create-a-deployable-standalone-executable-from-a-matl...

12 years ago | 0

Answered
How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
These are block properties available for query after the model has been compiled. For example, for the model _vdp_: vdp([],...

12 years ago | 0

| accepted

Answered
How to integrate Simulink (R2011a) with Code Composer Studio v5.x for code generation?
You may want to refer to this previously answered question regarding use of Xmakefilesetup with CCSv5: http://www.mathworks.com/...

12 years ago | 0

Answered
Start function of Matlab S-function is called during code generation
Are you sure that the Terminate function is never called? If you look under "Calling Structure for Code Generation" on the docum...

12 years ago | 0

Answered
how to store and use previous values of a variable in simulink during simulation?
As far as I know, using some of form of delays is the only way to store values from previous time-steps. Perhaps you could expla...

12 years ago | 0

Answered
How to generate code for mex files too while generating hardware specific code from simulink ?
Since MEX-files are specific to the MATLAB environment, you cannot run them on an embedded target. If you have the equivalent st...

12 years ago | 1

| accepted

Answered
Error when building Simulink model with C mex S-function in RTW (R2010b)
Bert: You need to modify your S-function code and remove the calls to the mxArray libraries. These libraries only run in the MAT...

12 years ago | 0

Answered
When starting Matlab R2013b it gives Illegal System DLL Relocation message, how to fix it?
From a web search, this seems like a Windows issue due to a Microsoft Security Update. See http://www.withsteps.com/240/illegal-...

12 years ago | 0

| accepted

Answered
S-Function with different behaviors during simulation and embedded coding
Yes, as you noted from my previous answer, your M-file will define simulation behavior, while the TLC will be used for code gene...

12 years ago | 1

| accepted

Answered
How to Build TLC files to generate C Code during RTW/EC build process?
Please refer to the documentation on <http://www.mathworks.com/help/rtw/target-extensions.html Target Development>.

12 years ago | 0

Answered
How i can get the class of vision.CascadeObjectDetector() ,whether the source code of it matlab provided?
You need to purchase and install the Computer Vision Toolbox to have access to this class.

12 years ago | 1

| accepted

Answered
.m file link with ccs 3.3 for ezdsp F28335
CCS is a compiler which will convert C code into binary files meant for TI processors like ezdsp F28335. You need to convert you...

12 years ago | 0

| accepted

Answered
Error in building model
This question has been <http://www.mathworks.com/matlabcentral/answers/40031-name-bat-is-not-recognized-as-an-internal-or-extern...

12 years ago | 0

| accepted

Answered
can we use MATLAB FUNCTION block for .m file for simulation?
WAVREAD and WAVWRITE are not amongst the <http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--alp...

12 years ago | 0

| accepted

Answered
how to link simulink with GUI so that the simulink model take the paramaeter set from the gui and and also gui get the data from the simulink model ?
See <http://www.mathworks.com/matlabcentral/answers/96425-how-can-i-update-a-gui-with-values-from-my-simulink-model-as-it-is-run...

12 years ago | 3

Answered
using a variable in simulink function
I'm assuming that by "User Defined Function", you actually mean the MATLAB Function block? If so, you can read a workspace varia...

12 years ago | 0

| accepted

Answered
"code error" "model error" "parse log" in simulink
Unfortunately, you do need to install a C compiler for Stateflow/MATLAB Function blocks to work. If you're on Windows, you could...

12 years ago | 0

Answered
How to install ArduinoIO in Matlab R2009a?
The |targetinstaller| was introduced in R2012a. See <http://www.mathworks.com/matlabcentral/answers/99769 Is Arduino® supported ...

12 years ago | 0

Answered
Embeded existing C code in a Simulink model
There is an automated tool called the <http://www.mathworks.com/help/simulink/sfg/integrating-existing-c-functions-into-simulink...

12 years ago | 0

Load more