답변 있음
why Matlab crashed when I use persistent C++ COM Object in Sfunction?
I suspect it is because your declaration of the variable |ISWrapper Iw;| goes out of scope at the end of |mdlStart|. Perhaps you...

13년 초과 전 | 1

| 수락됨

답변 있음
Freescale: Is CodeWarrior supported by EmbeddedCoder?
I could be wrong, but according to the <http://www.mathworks.com/products/embedded-coder/supported/index.html Supported Hardware...

13년 초과 전 | 0

답변 있음
convert this m file into c code using the emlc function?
Not all MATLAB functions are supported for code-generation, please see <http://www.mathworks.com/products/matlab-coder/descripti...

13년 초과 전 | 0

답변 있음
DLL generation by RTW with reference to external libraries
You can add compiler options to the <http://www.mathworks.com/help/rtw/ref/code-generation-pane-general.html#bq26b5k-1 Make comm...

13년 초과 전 | 0

| 수락됨

답변 있음
plotting graph in simulink
MATLAB might be more appropriate if you want to control the line styles. See <http://www.mathworks.com/help/matlab/creating_plot...

13년 초과 전 | 1

답변 있음
Simulink.Bus and Embedded Coder
You need to specify the Bus type on the Ports and Data Manager of the MATLAB Function block, not in the MATLAB code itself. Plea...

13년 초과 전 | 0

| 수락됨

답변 있음
how can i run simulink block since am using matlab r2012a
Could you try running "mex -setup" in MATLAB and have it automatically select a supported installed compiler? I've seen that fix...

13년 초과 전 | 0

| 수락됨

답변 있음
Running a step by step simulation with Simulink debugger
Yes, you can stop the simulation at each time-step using the Simulink Debugger. I believe you just need to set the break in what...

13년 초과 전 | 1

| 수락됨

답변 있음
mex a statisc library error
MEX-files are essentially shared libraries with a MEX-specific extensions. All shared libraries on Linux can only be linked agai...

13년 초과 전 | 0

답변 있음
How can I use a coder.opaque value in a Matlab expression with codegen?
I don't think coder.opaque type variables can participate in MATLAB expressions. You might need to convert that expression to an...

13년 초과 전 | 0

답변 있음
Simulink: Source (from workspace) running order
I'm confused about why you need a From Workspace block at all if you simply need the output of other Simulink blocks. If the sig...

13년 초과 전 | 0

답변 있음
how to create a sine wave between two sine references
It seems like you just want to switch between the two signals every t/4 seconds (t=period of input wave=1/50), so you can use a ...

13년 초과 전 | 1

답변 있음
How can I set block mask parameter from subsystem input
It is currently not possible to treat dialog parameters such as "Piston initial position" as an input. Please see the blog post ...

13년 초과 전 | 1

| 수락됨

답변 있음
I have some level 2 sfunctions in my system to wrap my C/C++ functions. All of these functions are fixed and I don't change them. Is it possible to avoid code generation of these function each time that I build an application for the xpctarget?
I think the only way to bypass code-generation for one part of the model is to using a <http://www.mathworks.com/help/simulink/m...

13년 초과 전 | 0

답변 있음
auto-run m-file without command prompt?
<http://www.mathworks.com/matlabcentral/answers/40013 This previously answered question> should help you create a desktop icon t...

13년 초과 전 | 0

답변 있음
Calling a Delphi generated DLL fails to load in Matlab
It seems like your DLL might be 32-bit, which cannot be loaded on 64-bit MATLAB. Please see <http://www.mathworks.com/matlabcent...

13년 초과 전 | 0

| 수락됨

답변 있음
Generating C/C++ executable for a GUI program
MATLAB Coder supports a <http://www.mathworks.com/products/matlab-coder/description2.html limited subset> of MATLAB functionalit...

13년 초과 전 | 0

| 수락됨

답변 있음
simulink path error matlab function block
You just need to change your working directory to something that's not under Program Files: >> cd C:\some\other\path MAT...

13년 초과 전 | 0

| 수락됨

답변 있음
The files about RTW
This is documented in the Simulink Coder (formerly Real-Time Workshop). See <http://www.mathworks.com/help/rtw/ug/files-and-fold...

13년 초과 전 | 0

답변 있음
How to define a persistent array in an Embedded function
How about: persistent X; if isempty(X) X=zeros(1,5); end

13년 초과 전 | 3

답변 있음
RTW : Why is errorStatus in Release 14 SP3 & R2006b is declared differently?
Not sure, but perhaps it is expected that there might be external hardware drivers that could update the errorStatus flag? I don...

13년 초과 전 | 0

| 수락됨

답변 있음
Invalid MEX-File / Problem with shared (library) object
Is it possible that libgazebo_transport.so is a 32-bit library? Perhaps you should try using the |file| command as described <ht...

13년 초과 전 | 0

답변 있음
How to set up the variable fractional delay for a flanging effect?
Try enabling <http://blogs.mathworks.com/seth/2008/10/24/r2008b-simulink-sample-time-colors/ sample time colors> for your model ...

13년 초과 전 | 0

답변 있음
Calling SimMechanics which requires input variables from matlab function
You need to pass in some additional options to the SIM command to make sure that the model reads and writes to the function work...

13년 초과 전 | 0

| 수락됨

답변 있음
How to use the Build/Reload&Run block in Simulink
My guess is that |get_param(gcb, 'UserData')| returns the name of a MATLAB script whose contents refer to specifics of the demo ...

13년 초과 전 | 0

| 수락됨

답변 있음
How can I covert a Matlab struct 1x1 to C++ without an error?
Have you already <http://www.mathworks.com/help/coder/ug/defining-or-editing-input-parameter-type-in-a-project.html#bswmeu_-13 s...

13년 초과 전 | 0

| 수락됨

답변 있음
matlab compiler on osx: using a matlab generated shared library
This seems to be a Mac-specific issue. I don't know too much about this, but perhaps this Technical Solution will be useful: <ht...

13년 초과 전 | 0

답변 있음
How to get list of Blocks, from a model , which belongs to customized Block library ?
Perhaps you could use the <http://www.mathworks.com/help/simulink/slref/libinfo.html LIBINFO> function.

13년 초과 전 | 1

답변 있음
how to make a simulink's interface with GUIDE
You can use event listeners to do this. Please see <http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simula...

13년 초과 전 | 0

답변 있음
Intialization of local variables in model_step() function
What block generates the code that uses these variables? The block is responsible for initialization of these variables. If it i...

13년 초과 전 | 0

더 보기