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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 2

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 3

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 2

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

Carica altro