Réponse apportée
Using Masks inside referenced models
# I think that the wording of that statement does imply what you stated: "The problem arises when the mask variable derives its ...

plus de 13 ans il y a | 1

Réponse apportée
problem in running a m-file
You should probably rename your .m file (comdll.m) so that it doesn't clash with commdll.dll. If you type |which commdll| in the...

plus de 13 ans il y a | 2

Réponse apportée
How can I run a simple Matlab .m file from Simulink
The MATLAB Function block always runs in "accelerated" mode, which means that it generates C code from your MATLAB code, compile...

plus de 13 ans il y a | 4

Réponse apportée
How can I implement coder.ceval in Simulink?
You need to add the header and source files to the <http://www.mathworks.com/help/simulink/gui/simulation-target-pane-custom-cod...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
How can I connect two seperate Simulink models?
Why not use the <http://www.mathworks.com/help/simulink/slref/model.html Model> block to reference each model? You can connect t...

plus de 13 ans il y a | 0

Réponse apportée
Copying constant from stateflow model to simulink
I wonder if you might need to write MATLAB code such as the following to get the value of the constant, and write it to whatever...

plus de 13 ans il y a | 0

Réponse apportée
Executables from Matlab compiler fail to run on the computer where they were built, but run on other computers. How do I run executables created using the matlab compiler (mcc) in debug mode?
George: If your application is working from within MATLAB, but not outside of it, most likely it cannot find MATLAB run-time lib...

plus de 13 ans il y a | 1

Réponse apportée
Simulink, increase simulation speed ?
You might find this blog post useful: <http://blogs.mathworks.com/seth/2010/12/06/5-resources-for-simulation-performance/ 5 Reso...

plus de 13 ans il y a | 1

Réponse apportée
C S-function problem when trying to get a pointer to a structure
You need to use: SomeStructureType* myStruct_ptr = new SomeStructureType; to create the pointer. If you simply assign i...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Why when I add mxDestroyArray(myArray) to my code MATLAB crashes?
You should only call |mxDestroyArray| on locally created mxArrays that are not being returned in plhs. Are you deleting mxArrays...

plus de 13 ans il y a | 1

Réponse apportée
How use Interpreted Matlab Function Simulink
How do you define pasivesuspens.m? In particular, how many inputs and outputs does it have? Also, is it on the MATLAB path? Try ...

plus de 13 ans il y a | 1

Réponse apportée
simulink clears workspace after being run with GUI
Try: options = simset('SrcWorkspace','current', 'DstWorkspace', 'current');

plus de 13 ans il y a | 1

Réponse apportée
Submatrix block with dynamical parameter
This blog post on <http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-output-of-another-b...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Using RandStream objects in mask initialization code
I just tried this, and it looks like you should be able to pass in a RandStream object as a mask (dialog) parameter. Does that n...

plus de 13 ans il y a | 0

Réponse apportée
S function builder help multi inputs/outputs feedback
One of the things you might need to do to avoid algebraic loops is turn off the "Inputs are needed in the output function (direc...

plus de 13 ans il y a | 0

Réponse apportée
S function builder for array of bus as output
It doesn't look like the S-function Builder supports array of buses at this point. Note how the edit-fields to specify dimension...

plus de 13 ans il y a | 1

Réponse apportée
How to create reference blocks?
The simple answer is that you need to create a Library model (From Simulink Library Browser > New > Library) and add your blocks...

plus de 13 ans il y a | 1

Réponse apportée
Embedded Matlab function to save a random number
Is 'u' a non-scalar value? If yes, this is expected. For example: >> c(uint16(4)) = [0 0] In an assignment A(I) = B, th...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
m-file programme to embed in DSP
If you have MATLAB code that you need to use in a Simulink model that you intend to generate code from, the correct way is indee...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Including Out-of-Scope Parameters within M S-functions
It looks like these parameters are not actually registered as S-function parameters - is that correct? It seems like they are us...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
How to link to a .pdf-file in Matlab Simulink Mask Editor Documentation Help
I think you can just use MATLAB commands like: web('http://www.mathworks.com/products/datasheets/pdf/matlab.pdf', '-browser...

plus de 13 ans il y a | 2

Réponse apportée
Set parameter of Simulink
You could probably use a <http://www.mathworks.com/help/simulink/ug/using-callback-functions.html model callback function> like ...

plus de 13 ans il y a | 0

Réponse apportée
Model Callbacks in Referenced Models
My guess is that the callbacks are executed in the order that each referenced model is compiled - I would expect this to be the ...

plus de 13 ans il y a | 0

Réponse apportée
Interface Gui and Simulink in order to generate an executable
I think the best way would be to use Simulink Coder to generate a <http://www.mathworks.com/help/ecoder/ug/creating-and-using-ho...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to put print statements in MEX files generated with codegen?
Perhaps if you flush the |stdout| at regular intervals, you will see the displayed statements immediately. You could try using c...

plus de 13 ans il y a | 0

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

plus de 13 ans il y a

Réponse apportée
variables in Simulink Workspace
Please see my answer <http://www.mathworks.com/matlabcentral/answers/33864#answer_42507 here> to a similar previously asked ques...

plus de 13 ans il y a | 1

Réponse apportée
Real time target and s-fuction
If you have not written a TLC file to <http://www.mathworks.com/help/rtw/s-function-inlining.html inline your S-function>, then ...

plus de 13 ans il y a | 0

Réponse apportée
mcc compiler unicode flag
Ah! So you meant a MATLAB Compiler (mcc) option, not a C compiler option - sorry about misunderstanding your question. I don't b...

plus de 13 ans il y a | 0

Réponse apportée
Mex Function - specifying an input to output port dependency
I've not tried this myself, but if the input port *P* is not used directly in the mdlOutputs method (can be used in mdlUpdate in...

plus de 13 ans il y a | 0

Charger plus