답변 있음
Compiling with Mex - Can I reference Environment Variables?
Try: mex -v COMPFLAGS="$COMPFLAGS -I%REF_DIR%/include" my_sfunction.c I think this command, or a minor variation on it s...

14년 초과 전 | 0

답변 있음
S-function: In which initialization callback function is the input data available to use?
The inputs to an S-function are only reliably available in the mdlOutputs method. The inputs to any block are the outputs of oth...

14년 초과 전 | 0

답변 있음
Debuging continuous states in a discrete simulation
The error occurs because you have continuous states in your model (for example, blocks from the Continuous sub-library in the Si...

14년 초과 전 | 1

답변 있음
How to run "mex" with linking a dll file
I'm not all too familiar with building/linking against DLLs, but typically the .lib corresponding to a .dll is the import librar...

14년 초과 전 | 1

답변 있음
library browser hierachy
A similar question was answered before: http://www.mathworks.com/matlabcentral/answers/13851-sub-libraries-do-not-appear-in-the-...

14년 초과 전 | 0

| 수락됨

답변 있음
problem with building a simulink model with two s-functions written in C language
You need to compile them separately - they need to be two separate binaries: mex MPCtest1.c mex MPCtest2.c

14년 초과 전 | 0

| 수락됨

답변 있음
NIPCIe6323 Driver for simulink RTW
In general, Real-Time Workshop (now, Simulink Coder) generates ANSI/ISO C/C++ code and thus supports all embedded microprocessor...

14년 초과 전 | 0

답변 있음
64bit Linux opening .mat file in C: library not linking
The shared object files to add to LD_LIBRARY_PATH are only needed at run-time (when the application attempts to load the librari...

14년 초과 전 | 0

| 수락됨

답변 있음
Missing lib lMTwister when compiling C++ program for matlab engine in debian
It looks like this library may have existed in very old versions of MATLAB (from a web search, I found references that suggest t...

14년 초과 전 | 0

| 수락됨

답변 있음
Can I use ICPCON i7018 AI module for data acquisition in Simulink?
It doesn't look like this hardware is currently supported with the Data Acquisition Toolbox. You may need to write your own adap...

14년 초과 전 | 0

답변 있음
How to pass a matrix input argument to a VBA function generated by MATLAB Builder EX?
I'm not all too familiar with calling MATLAB Builder EX components from VBA, but I thought this documentation example may help y...

14년 초과 전 | 0

답변 있음
Using user defined structure as precision to fread
There is no precision format to directly read into a structure. You need to read the file into arrays/matrices and then later co...

14년 초과 전 | 1

답변 있음
Matlab Coder and Ceval
Try: for n=2:10 coder.ceval('printf','%d ',int32(n)); end or for n=2:10 coder.ceval('printf','%f ', n); end ...

14년 초과 전 | 0

| 수락됨

답변 있음
Simulink's Audio Reverberation demo with ADSP-BF537 EZ-KIT Lite - unable to connect
What version of MATLAB are you using? It looks like the latest release (R2011a) does support Windows 64-bit: http://www.mathwork...

14년 초과 전 | 0

답변 있음
mcc and startup
The MATLAB path (that you add to using addpath) is only used to resolve MATLAB/Simulink related files (like .m, .p, .mat, mexw32...

거의 15년 전 | 0

답변 있음
Stateflow:UnexpectedError when generating Simulink model code in 2011a
All Stateflow charts and Embedded MATLAB blocks generate C code and compile them for execution, the compiler selected using the ...

거의 15년 전 | 0

답변 있음
Usage of functions of Optimisation toolbox along with Embedded Coder
Sorry, it doesn't look like any of the Optimization Toolbox functions are in the <http://www.mathworks.com/help/toolbox/eml/ug/b...

거의 15년 전 | 0

| 수락됨

답변 있음
loadlibrary and calllib inside a C mex routine
I think it should be possible to continue using GetProcAddress in the MEX-function. However, remember that GetProcAddress belong...

거의 15년 전 | 0

답변 있음
Problem: how to get datas from integrator block in simulink
On the Integrator block dialog, there is an option called "Show state port" that you can select to output the current state. Doe...

거의 15년 전 | 0

답변 있음
MCRInstaller.exe
MCRInstaller.exe basically installs MATLAB Runtime Libraries, so that compiled MATLAB applications (which call into these runtim...

거의 15년 전 | 0

답변 있음
How to solve Differential Equations in Simulink level 2 s function
Change your InitConditions callback to: function InitConditions(block) %% Initialize Dwork block.ContStates.Data(...

거의 15년 전 | 1

답변 있음
Setting fields of a Matlab struct in C++
I think you might need to use operator(). Try: inputArray(fields[0],1,1) = field0Value;

거의 15년 전 | 0

답변 있음
Highlight Simulink model lines with custom colors
The HiliteAncestors property is currently documented as "internal use only" - so I'm not sure where you got example usage from. ...

거의 15년 전 | 1

| 수락됨

답변 있음
M-file S-function dimension
You shouldn't have to specify the input size of a variable-size signal - the S-function can get this information from the Simuli...

거의 15년 전 | 0

답변 있음
question regarding code generation.
The rsim.tlc target allows rapid prototyping on a machine that has MATLAB/Simulink installed. Since you need to forward your mod...

거의 15년 전 | 0

| 수락됨

답변 있음
GUI and real time simulation of Simulink model
For real-time simulation of Simulink models, you can use either <http://www.mathworks.com/products/rtwt/ Real-Time Windows Targe...

거의 15년 전 | 0

답변 있음
probleme de connection entre les block dans simulink
Sorry, I can't write in French, but hopefully you can use a tool to get a reasonable translation: SimElectronics uses the Sim...

거의 15년 전 | 1

| 수락됨

답변 있음
Warning: Unable to load block diagram 'xbsIndex_r4' in MATLAB 2007A
The library model xbsIndex_r4.mdl belongs to the Xilinx System Generator blockset. It looks like your model contains blocks from...

거의 15년 전 | 1

| 수락됨

답변 있음
Mex 64bit library error
Please see my answer to <http://www.mathworks.com/matlabcentral/answers/12147-invalid-mex-file-cannot-dynamically-load-executabl...

거의 15년 전 | 0

답변 있음
Unit Delay can't resolve discrete time
What have you set for "Sample time" on the block dialog? This needs to be discrete sample time for HDL code generation. If yo...

거의 15년 전 | 0

더 보기