Risposto
How to set "From workspace"
Please make sure that your data is in the format required by the block as specified in the <http://www.mathworks.com/help/simuli...

circa 13 anni fa | 0

Risposto
How to get xml-Data in Simulink
I'd recommend that you use an <http://www.mathworks.com/help/simulink/slref/interpretedmatlabfunction.html Interpreted MATLAB Fu...

circa 13 anni fa | 0

Risposto
How to compile Simulink models before doing simulation?
You can use the <http://www.mathworks.com/help/simulink/slref/model_cmd.html modelname> command to compile the model. For exampl...

circa 13 anni fa | 5

| accettato

Risposto
How to run MATLAB function and Simulink model simultaneously?
You can run MATLAB code "simultaneously" with a model only by running it as part of the simulation loop. This can be done by inv...

circa 13 anni fa | 0

| accettato

Risposto
About controlling Simulink model execution at run time
You might want to use the <http://www.mathworks.com/help/simulink/slref/stopsimulation.html Stop> block to build the stop logic ...

circa 13 anni fa | 0

| accettato

Risposto
How to replace a block in Simulink?
You'll need to use a combination of <http://www.mathworks.com/help/simulink/slref/add_block.html add_block>, <http://www.mathwor...

circa 13 anni fa | 1

Risposto
simulink block having lower output refresh rate than input
Yes, it is possible to write S-functions that have different sample rates at the ports. Type "sfcndemo_sfun_multirate" at the MA...

circa 13 anni fa | 0

| accettato

Risposto
How to change Upper and Lower saturation limits of Discrete Integrator on the run?
Just follow it up with a <http://www.mathworks.com/help/simulink/slref/saturationdynamic.html Saturation Dynamic> block.

circa 13 anni fa | 0

Risposto
Sample time of function call subsystem in state chart
The error is basically complaining that in the Simulink Functions 'Homing' and 'Operating', you have non-constant or non-inherit...

circa 13 anni fa | 0

| accettato

Risposto
how to save simulink block diagram as pdf ?
Do you just want an image of the top-level model to be exported to a PDF file? If yes, I think you can just use the File>Print o...

circa 13 anni fa | 0

| accettato

Risposto
How do I update Simulink model parameters during a simulation?
In general, what you're doing is considered bad practice. To understand why, please read <http://blogs.mathworks.com/seth/2011/0...

circa 13 anni fa | 5

| accettato

Risposto
Simulink block diagram has issues with function blocks in R2013a, not R2012.
To follow the Upgrade Advisor, open up the MATLAB Function block's <http://www.mathworks.com/help/simulink/ug/matlab-function-bl...

circa 13 anni fa | 0

Risposto
i want to convert (.slx) format to (.mdl)format at this link: http://www.mediafire.com/?c5p02776wo6ly66
If you have R2012a or a newer version, you can use 'Save As...' on the model to do the conversion.

circa 13 anni fa | 0

Risposto
Matlab Function Block with error generated by Stateflow
The MATLAB Function block and Stateflow share some common infrastructure, which is why you will sometimes see error messages as ...

circa 13 anni fa | 1

| accettato

Risposto
Running C S-Functions in a Different Matlab/Simulink Version?
The model .slx format was introduced in R2012a, so older versions don't know how to read it. Please use "Save As.." to save it a...

circa 13 anni fa | 0

Risposto
How to diplay the printf statement which is written in S-function?
You can use <http://www.mathworks.com/help/simulink/sfg/ssprintf.html ssPrintf>.

circa 13 anni fa | 0

| accettato

Risposto
How to invoke a level 2-s function's callback method from an external .m file?
Why not call external.m and assign the outputs to local variables, and then assign those to the outputs: [val1, val2] = ext...

circa 13 anni fa | 0

Risposto
automatic change a block number in a mask, coming from simulink library, when I drag it more than onetime in my working space
You can typically perform operations on block copy using the CopyFcn callback of the block. See <http://www.mathworks.com/help/s...

circa 13 anni fa | 0

| accettato

Risposto
How can I remove the hook added by "addUserHook" in Simulink
I'm guessing that happens because your sl_customization.m file is on the MATLAB path. You need to either add the hook conditiona...

circa 13 anni fa | 0

Risposto
In the subsystem mask help in Simulink, how to access pictures in the same folder as the model?
Is the 'mask_help/image.png' relative to the path when your Simulink library exists? If so, perhaps you can find the exact path ...

circa 13 anni fa | 0

| accettato

Risposto
Matlab Coder and CCS
Please see <http://www.mathworks.com/matlabcentral/answers/29644 this previously answered question>.

circa 13 anni fa | 0

| accettato

Risposto
Simulink run error "Cannot activate configuration set" in R2012b
What setting do you have under the 'Hardware Implementation' pane on the Configuration Parameters window for "Device vendor" and...

circa 13 anni fa | 0

Risposto
How to sort an array efficiently in Simulink?
If you have a license to the DSP System Toolbox, you can use the <http://www.mathworks.com/help/dsp/ref/sort.html Sort> block. O...

circa 13 anni fa | 0

| accettato

Risposto
How can I build code for a Level-2 M S-function block in Simulink such that it runs on the xPC real-time target?
If your MATLAB code only uses functions/constructs <http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-gener...

circa 13 anni fa | 0

Risposto
Systematically pause Simulink model and continue from Matlab command line
What kind of data handling would you like to do in MATLAB? You might want to look at <http://www.mathworks.com/help/simulink/ug/...

circa 13 anni fa | 1

| accettato

Risposto
mex @rsp_file (windows) commenting
The pound (#) symbol usually denotes comments in MEX options files.

circa 13 anni fa | 0

Risposto
How do you store output data in a text file during simulation ?
You might need to write a custom block (perhaps using a MATLAB S-function) to do the logging to a text file for you. I don't thi...

circa 13 anni fa | 0

Risposto
Code to obtain origin and destinations of unions on Simulink
Just to clarify - did you mean structure, and not union? If structure, please see <http://www.mathworks.com/help/simulink/ug...

circa 13 anni fa | 0

Risposto
what is the difference between simulink objects and mpt objects
This <http://www.mathworks.com/matlabcentral/answers/50283 previous answer> might be of help.

circa 13 anni fa | 1

| accettato

Risposto
C/C++ wrapper to invoke SIMULINK model/libraries in external software designs
It is possible to generate a standalone C/C++ shared library from your Simulink model if you have an Embedded Coder license, whi...

circa 13 anni fa | 0

Carica altro