回答済み
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

さらに読み込む