Réponse apportée
How to store data while simulating a model?
You can use states in an S-function to store data from previous time step(s). Note that Level-1 S-functions are no longer suppor...

plus de 10 ans il y a | 0

Réponse apportée
C-compiler setup in MATLAB R2009a 64-bit version
I am not all too familiar with the Simulink memory allocation error (perhaps your model deals with large amounts of memory?), bu...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
Protecting a Simulink block with a password
You can protect your Simulink subsystem by one of three methods: 1) Control user access to subsystems 2) Generate an S-fun...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
How to change Simulink constant block value to a constant variable?
set_param([simfilename '/Constant2'],'Value', num2str(gc/3));

plus de 10 ans il y a | 2

| A accepté

Réponse apportée
How can i pass an array of 10x1 to Simulink built in function. Output of this function should be one value of array element at a certain simulation time
Looks like you need the <http://www.mathworks.com/help/dsp/ref/buffer.html Buffer> block. If you don't have a DSP System Toolbox...

plus de 10 ans il y a | 1

Réponse apportée
Develop a processor compatible code.
You may find <http://www.mathworks.com/matlabcentral/answers/65380-is-there-any-possobility-to-load-matlab-code-in-dsk6713-proce...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Question about .tlc syntax
Not very sure, but the TLC reference documentation on <http://www.mathworks.com/help/rtw/tlc/target-language-compiler-directives...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to create a "model parameters" block in Simulink?
Hatem: The model uses a pretty simple mechanism as you've found out already. The mask of the empty subsystem calls a MATLAB file...

plus de 10 ans il y a | 1

Réponse apportée
how to get the port data inside a mask editor parameter/variable of a subsystem ?
Do you mean that you need the mask to be updated at runtime? Could you please expand a use-case a bit more? AFAIK, the mask cann...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Porting Matlab Code to C++
MATLAB Coder can generate code that is completely standalone, but it does not support MATLAB Graphics/GUI. As the <http://www.ma...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Can a protected model developed in 32-bit Matlab/Simulink be used in 64-bit Matlab/Simulink?
According to the <http://www.mathworks.com/help/simulink/ug/protecting-referenced-models.html documentation>: A third party...

plus de 10 ans il y a | 0

Réponse apportée
How to include user library files(.lib) for Accelerator mode compilation ?
Please see <http://www.mathworks.com/help/rtw/ug/s-functions-for-code-generation.html#bp67s_y-3 Specify Additional Source Files ...

plus de 10 ans il y a | 0

Réponse apportée
set simulink time step
For variable-step solvers, you can do this by setting the Output options parameter on the Import/Export Pane of the Configuratio...

plus de 10 ans il y a | 3

| A accepté

Réponse apportée
Find Configurable subsystem reference variables
The variables are defined via the <http://www.mathworks.com/help/simulink/ug/initialize-mask.html Mask Initialization> pane of t...

plus de 10 ans il y a | 0

Réponse apportée
How can I make a Simulink block dialog box parameter change dynamically during simulation?
See <http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-output-of-another-block/ How Do I...

plus de 10 ans il y a | 0

Réponse apportée
how to link system generator of xilinx with MATLAB?
I don't know too much about this area, but it looks like you will need <www.mathworks.com/products/hdl-verifier/ HDL Verifier>.

plus de 10 ans il y a | 0

Réponse apportée
How to generate S-Function using legacy tool box for a Function having multiple function calls in it
Did you include the source/library file that contains the definition to '_Function_call_1' in the 'SourceFiles' or 'HostLibFiles...

plus de 10 ans il y a | 0

Réponse apportée
error in simulation matlab function with simulinK
Please follow the suggestion in this <http://www.mathworks.de/matlabcentral/answers/79463-access-is-denied-error previously answ...

plus de 10 ans il y a | 0

Réponse apportée
Is there any way to run simulink model after certain time period?
Simulink can currently only run one model at a time, but you can still achieve what you need by <http://www.mathworks.com/help/s...

plus de 10 ans il y a | 2

| A accepté

Réponse apportée
Dynamical memory allocation in Simulink
Does the error point to the MATLAB Function block? If so, on the block's <http://www.mathworks.com/help/releases/R2013a/simulink...

plus de 10 ans il y a | 0

Réponse apportée
How to increase Buffer size parameter in MATLAB .mdl simulation file?
Errors from Simulink typically point to a block, so it is strange that your error doesn't do so. Do you have a <http://www.math...

plus de 10 ans il y a | 0

Réponse apportée
Changing Interpreted MATLAB Fcn into MATLAB Function
MATLAB Function blocks generate C code from your MATLAB code to enable faster execution. It looks like the errors are occurring ...

plus de 10 ans il y a | 0

Réponse apportée
How to vectorize signal and parameter?
As you found out, most Simulink blocks just accept a vectorized input signal. For instance, if you have a Gain block with a vect...

plus de 10 ans il y a | 0

Réponse apportée
Does contents of modelinfo block appears in the generated code?
See <http://www.mathworks.com/help/ecoder/ug/add-global-comments.html Add Global Comments>.

plus de 10 ans il y a | 0

Réponse apportée
Simulink if action block
You cannot use an input signal as a Gain parameter. Instead, you may want to replace the Gain block with a combination of Consta...

plus de 10 ans il y a | 0

Réponse apportée
How to use Global Objects in Matlab S-Function
Please see if my answer here helps: http://www.mathworks.com/matlabcentral/answers/27902-working-with-matlab-classes-in-the-leve...

plus de 10 ans il y a | 0

Réponse apportée
Simulink block error. "Invalid sizes vector returned by MEX S-function"
What you have is a MEX-function meant for execution in MATLAB. You can run it like any other MATLAB function. An S-function look...

plus de 10 ans il y a | 0

Réponse apportée
how to deal with samples in simulink models
You can use the <http://www.mathworks.com/help/simulink/slref/selector.html Selector> block to pick selected elements of the inp...

plus de 10 ans il y a | 0

Réponse apportée
Is it possible to compile a simulink model which includes an external s-function (mexw32) with real time workshop?
I think you need to at least have a TLC-file for the S-function to generate an RSIM target. If you have the source code, I think...

plus de 10 ans il y a | 0

Réponse apportée
how to pass only parameters passed to a matlab routin/function to simulink when we call simulink inside that routin?
See <http://www.mathworks.com/matlabcentral/answers/92888 How do I run a model in Simulink from my MATLAB function where my Simu...

plus de 10 ans il y a | 0

Charger plus