Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 1

| accepted

Answered
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...

10 years ago | 1

| accepted

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

10 years ago | 2

| accepted

Answered
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...

10 years ago | 1

Answered
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...

10 years ago | 0

| accepted

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

10 years ago | 0

| accepted

Answered
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...

10 years ago | 1

Answered
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...

10 years ago | 0

| accepted

Answered
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...

10 years ago | 0

| accepted

Answered
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...

10 years ago | 0

Answered
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 ...

10 years ago | 0

Answered
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...

10 years ago | 3

| accepted

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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>.

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 2

| accepted

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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 ...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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>.

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Load more