Answered
Where to obtain MX/MEX/MAT/Engine Libraries?
The libraries ship with MATLAB. You should compile your MEX-file using the MATLAB <http://www.mathworks.com/help/matlab/ref/mex....

13 years ago | 0

| accepted

Answered
How to write Matlab Code for Microcontroller (such as 8051, PIC) and convert them into HEX code such that it can be burn on the microcontroller ?
You can use the <http://www.mathworks.com/products/matlab-coder/ MATLAB Coder> product to generate standalone C code from your M...

13 years ago | 0

Answered
Developing GUI for a Simulink model
You need to look at the broader <http://www.mathworks.com/help/techdoc/creating_guis/bqz6p81.html GUIDE documentation> for help ...

13 years ago | 1

Answered
S function Impossible to Load library
What do you get when you run these commands at your MATLAB prompt: >> which mp_read_fields Do you have access to the so...

13 years ago | 1

Answered
Matlab Compiler for Windows - Version, description etc. into exe file
You might find this solution useful: <http://www.mathworks.com/support/solutions/en/data/1-2GWE9P/index.html How can I specify v...

13 years ago | 0

Answered
Simulink Dimensions of signal change - help
Not sure which dimensions have changed. Are you talking about the difference in the signal dimensions for the outputs of the two...

13 years ago | 0

Answered
Real Time Workshop and building models with autocoding from the terminal window instead of MATLAB enviroment
The command in MATLAB to use is <http://www.mathworks.com/help/releases/R2011b/toolbox/rtw/ref/rtwbuild.html RTWBUILD>. You can ...

13 years ago | 0

Answered
Simulink Graphical User Interface
Perhaps this section in the documentation will be useful: <http://www.mathworks.com/help/techdoc/creating_guis/f6-8865.html A GU...

13 years ago | 2

Answered
simulink model -> processing on GPU (CUDA)
It doesn't look like any of the GPU functions are in the list of <http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z7-11.html f...

13 years ago | 3

Answered
4D input into simulink model
I'm not sure how you deal with the time dimension, but I think you should let the Inport block (or whichever technique you use t...

13 years ago | 1

Answered
Nested buses in base workspace
I think you just need to make the DataType field of the element that is another bus equal to something like 'Bus: elementEp_stru...

13 years ago | 1

Answered
sim command and to workspace logging
As described on <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/ug/f11-61836.html this page> of the documentatio...

13 years ago | 1

Answered
Error in the incremental build with a S-function on Real Time Windows Target
If you're using R2008b or R2009a, this might be due to <http://www.mathworks.com/support/bugreports/522933 Bug#522933> - the Bug...

13 years ago | 0

| accepted

Answered
Output first zero of a signal?
You should be able to do this in Simulink with some combination of the <http://www.mathworks.com/help/toolbox/simulink/slref/clo...

13 years ago | 0

| accepted

Answered
Hi, everybody, I got one problem when using S-function dynamic output. The input dimensions of my S function module is constant, i.e., 4,
You haven't mentioned if you're writing a MATLAB S-function, or a C S-function, but <http://www.mathworks.com/help/releases/R201...

13 years ago | 1

Answered
Problem about S function builder
Could post line 768 of F:\TEST\MPC5634M_MLQB80.h? I'm guessing that whatever compiler you have selected using "mex -setup" in MA...

13 years ago | 0

Answered
Using MCR in C++ project: undefined reference to `mclInitializeComponentInstanceWithEmbeddedCTF_proxy'
<http://www.mathworks.com/support/solutions/en/data/1-8DW2B1/index.html According to this solution>, you may be linking against ...

13 years ago | 0

| accepted

Answered
Changing SimPowerSystem Block Parameter during simulation runtime
If the block you are using defines its parameter(s) as non-tunable, then there is no way to tune it. You might need to find an a...

13 years ago | 1

Answered
How to make the gain of the Discrete Derivative block tunable?
It appears that the parameter is not tunable. You can verify this with the commands: >> dp = get_param('MDL/Discrete Deriva...

13 years ago | 2

| accepted

Answered
What are the "Real-Time Model" objects for in simple code generated by embedded coder
Are you using anything other than a plain Multiply block in your model? Model references, S-functions, etc.? Also, do you use er...

13 years ago | 1

Answered
Does setenv not set variables for MEX functions?
I think this is an OS-defined behavior and not specific to MATLAB. Extrapolating from <http://stackoverflow.com/questions/671369...

13 years ago | 0

Answered
Output setted from c-mex is sometime right, sometime null
More likely that there is something wrong with the way your S-function is written. Could you post your mdlOutputs implementation...

13 years ago | 0

| accepted

Answered
error in real time workshop
Function declared using eml.extrinsic (or code.extrinsic) are not supported for code-generation, since they are not in the <http...

13 years ago | 0

Answered
developing GUI using guide to interact with simulink model
You may want to follow the documentation for <http://www.mathworks.com/help/toolbox/simulink/ug/f13-92122.html Accessing Block D...

13 years ago | 0

| accepted

Answered
how to convert vc++ program models into simulink blocks
Please see <http://www.mathworks.com/help/toolbox/simulink/sfg/bq4g1es-1.html Integrating Existing C Functions into Simulink Mod...

13 years ago | 0

Answered
Run Matlab command line
Try matlab -r "(name of my file)" If you want to run a specific version of MATLAB, perhaps you should specify the full...

13 years ago | 2

| accepted

Answered
difficulties making wrapper mex file on linux?
Looks like you might need to add a #include <dlfcn.h> to mlbsuite.c?

13 years ago | 0

| accepted

Answered
Error while compiling mex wrapper in debug mode
Instead of modifying mexWrapper.cpp, perhaps you should modify mexopts.bat to define _ITERATOR_DEBUG_LEVEL=2 and _SECURE_SCL=1....

13 years ago | 1

Answered
How can generated C code read an excel file?
I'm guessing that you are reading the Excel file from one of the model <http://www.mathworks.com/help/toolbox/simulink/ug/f4-122...

13 years ago | 1

| accepted

Answered
simulink variables reading error
See <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/constant.html#bslokor this documentation page> for inf...

13 years ago | 1

Load more