I am a Software Developer on the Simulink Engine team at MathWorks. I have also worked in our Technical Support Department in the past, with a specialization in our code-generation products.

DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks.

**IMPORTANT NOTE**: Please be considerate and avoid sending personal messages to contributors on this forum. All users participate voluntarily, and in their spare time. It is forum etiquette to first search for a solution to your problem on the forum to see if it has been answered before. If you do not find a solution, formulate your problem well and post it as a question on the forum. Be patient and allow time for it to be answered. There are some great tips in these discussions:

http://www.mathworks.com/matlabcentral/answers/728-how-do-i-write-a-good-question-for-matlab-answers

http://www.mathworks.com/matlabcentral/answers/20313-how-to-get-answers-for-my-unanswered-questions

Professional

Answered

Generating Standalone Executable file Using Matlab Coder

There are two separate MathWorks' products that you are seemingly confused between: 1. The "mcc" (and "deploytool") command b...

Generating Standalone Executable file Using Matlab Coder

There are two separate MathWorks' products that you are seemingly confused between: 1. The "mcc" (and "deploytool") command b...

9달 ago | 19

| accepted

Answered

How to add right click options in Simulink

Please see <https://www.mathworks.com/help/simulink/ug/adding-items-to-model-editor-menus.html Add Items to Model Editor Menus> ...

How to add right click options in Simulink

Please see <https://www.mathworks.com/help/simulink/ug/adding-items-to-model-editor-menus.html Add Items to Model Editor Menus> ...

12달 ago | 3

| accepted

Answered

HDL coding of simulink blocks Qam, Convolutional encoder and Ifft

The error is about the fact that your input signal (coming from Bernoulli Random Binary Generator) is a frame-based signal. You ...

HDL coding of simulink blocks Qam, Convolutional encoder and Ifft

The error is about the fact that your input signal (coming from Bernoulli Random Binary Generator) is a frame-based signal. You ...

1년 이상 ago | 1

| accepted

Answered

Reading a wire value from Simulink into the Command Window or GUIDE

Please see <http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html Access Block Data During Simul...

Reading a wire value from Simulink into the Command Window or GUIDE

Please see <http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html Access Block Data During Simul...

약 3년 ago | 2

| accepted

Answered

take input video from web cam

You need the Image Acquisition Toolbox for this. <http://www.mathworks.com/hardware-support/index.html?q=%20product:%22Image+Acq...

take input video from web cam

You need the Image Acquisition Toolbox for this. <http://www.mathworks.com/hardware-support/index.html?q=%20product:%22Image+Acq...

약 4년 ago | 0

Answered

Run a simulink model for a certain amount of time and pause

The easiest way to do this is to configure the <http://www.mathworks.com/help/simulink/ug/controlling-execution-of-a-simulation....

Run a simulink model for a certain amount of time and pause

The easiest way to do this is to configure the <http://www.mathworks.com/help/simulink/ug/controlling-execution-of-a-simulation....

4년 이상 ago | 1

Answered

Character Variables in Simulink

Characters are not valid Simulink signal types - only numeric, fixed-point, enumerated and bus types (with elements of supported...

Character Variables in Simulink

Characters are not valid Simulink signal types - only numeric, fixed-point, enumerated and bus types (with elements of supported...

4년 이상 ago | 0

| accepted

Answered

from matlab class to simulink

See the documentation section <http://www.mathworks.com/help/simulink/ug/types-of-custom-blocks.html Types of Custom Blocks>MATL...

from matlab class to simulink

See the documentation section <http://www.mathworks.com/help/simulink/ug/types-of-custom-blocks.html Types of Custom Blocks>MATL...

4년 이상 ago | 1

Answered

how to build an interface between matlab and another software

MATLAB offers several ways of interfacing with external software. See <http://www.mathworks.com/help/matlab/index.html External ...

how to build an interface between matlab and another software

MATLAB offers several ways of interfacing with external software. See <http://www.mathworks.com/help/matlab/index.html External ...

4년 이상 ago | 1

Answered

Usage of idmodel in simulink

I don't have any experience with the System Identification Toolbox, but after looking at the documentation, it appears that you ...

Usage of idmodel in simulink

I don't have any experience with the System Identification Toolbox, but after looking at the documentation, it appears that you ...

4년 이상 ago | 0

| accepted

Answered

Can't compile matcreat.cpp in linux

Have you tried compiling using the options file as described in the documentation: <http://www.mathworks.com/help/matlab/matlab_...

Can't compile matcreat.cpp in linux

Have you tried compiling using the options file as described in the documentation: <http://www.mathworks.com/help/matlab/matlab_...

4년 이상 ago | 0

| accepted

Answered

converting M-file into a block function in simulink

You can call the function from any of <http://www.mathworks.com/help/simulink/ug/types-of-custom-blocks.html three MATLAB Functi...

converting M-file into a block function in simulink

You can call the function from any of <http://www.mathworks.com/help/simulink/ug/types-of-custom-blocks.html three MATLAB Functi...

4년 이상 ago | 0

| accepted

Answered

Data bus Signals in Simulink

You can create Simulink Bus signals. See <http://www.mathworks.com/help/simulink/composite-signals.html?searchHighlight=Using%20...

Data bus Signals in Simulink

You can create Simulink Bus signals. See <http://www.mathworks.com/help/simulink/composite-signals.html?searchHighlight=Using%20...

4년 이상 ago | 0

Answered

Create a block to read keyboard inputs

The Embedded MATLAB Fcn block should be sufficient for your purpose. You can use the <http://www.mathworks.com/help/techdoc/ref/...

Create a block to read keyboard inputs

The Embedded MATLAB Fcn block should be sufficient for your purpose. You can use the <http://www.mathworks.com/help/techdoc/ref/...

4년 이상 ago | 0

Answered

SimMechanics Link problem

You need to download install_addon.m and the platform-specific ZIP file. Then go to the directory containing the downloaded file...

SimMechanics Link problem

You need to download install_addon.m and the platform-specific ZIP file. Then go to the directory containing the downloaded file...

4년 이상 ago | 0

| accepted

Answered

Link between blocks

It seems like you are using a block from the SimPowerSystems library which can only be connected to blocks that accept physical ...

Link between blocks

It seems like you are using a block from the SimPowerSystems library which can only be connected to blocks that accept physical ...

4년 이상 ago | 0

| accepted

Answered

S-Fuction Steam mixer design: How to use m-function in a C code

Please see these previously answered questions on this topic: http://www.mathworks.com/matlabcentral/answers/85499-plot-x-axi...

S-Fuction Steam mixer design: How to use m-function in a C code

Please see these previously answered questions on this topic: http://www.mathworks.com/matlabcentral/answers/85499-plot-x-axi...

4년 이상 ago | 0

| accepted

Answered

how to use a C++ program to call a Matlab script

If you are running the C++ application on a machine that has MATLAB installed, see <http://www.mathworks.com/help/matlab/calling...

how to use a C++ program to call a Matlab script

If you are running the C++ application on a machine that has MATLAB installed, see <http://www.mathworks.com/help/matlab/calling...

4년 이상 ago | 1

Answered

Is there any possibility of S-function written in C language calling matlab function library, and if so, then how ? I will appreciate that if someone can tell me.

C S-functions are just a special kind of MEX-function, the |mexFunction| entry-point is defined in |simulink.c|, which is #incl...

Is there any possibility of S-function written in C language calling matlab function library, and if so, then how ? I will appreciate that if someone can tell me.

C S-functions are just a special kind of MEX-function, the |mexFunction| entry-point is defined in |simulink.c|, which is #incl...

5년 이하 ago | 0

| accepted

Answered

How to model a rolling mill?

Are you referring to these files: <http://www.mathworks.com/matlabcentral/fileexchange/28386-modeling-and-control-of-multi-stage...

How to model a rolling mill?

Are you referring to these files: <http://www.mathworks.com/matlabcentral/fileexchange/28386-modeling-and-control-of-multi-stage...

5년 이하 ago | 0

Answered

Question regarding Matlab level 2 S function

Yes, you can do this by <http://www.mathworks.com/help/simulink/masking.html Masking> your S-function block. You can then add th...

Question regarding Matlab level 2 S function

Yes, you can do this by <http://www.mathworks.com/help/simulink/masking.html Masking> your S-function block. You can then add th...

5년 이하 ago | 0

| accepted

Answered

Simulink MxArray for logical array

See the answer for <http://www.mathworks.com/matlabcentral/answers/122167-subscripting-into-an-mxarray-is-not-supported this sim...

Simulink MxArray for logical array

See the answer for <http://www.mathworks.com/matlabcentral/answers/122167-subscripting-into-an-mxarray-is-not-supported this sim...

5년 이하 ago | 0

Answered

How to import a 4x4x3 matrix in simulink from workspace?

Add a <http://www.mathworks.com/help/simulink/ug/parameter-arguments-in-matlab-function-block-functions.html parameter argument>...

How to import a 4x4x3 matrix in simulink from workspace?

Add a <http://www.mathworks.com/help/simulink/ug/parameter-arguments-in-matlab-function-block-functions.html parameter argument>...

5년 이하 ago | 0

Answered

How can i creat a DLL file for Simulink Model??

You can use |ert_shrlib.tlc| if you have the Embedded Coder product to generate generic DLLs from your Simulink model. The relev...

How can i creat a DLL file for Simulink Model??

You can use |ert_shrlib.tlc| if you have the Embedded Coder product to generate generic DLLs from your Simulink model. The relev...

5년 이하 ago | 0

Answered

How can I create code for an embedded Linux target with Simulink hosted on Windows?

You can select the <http://www.mathworks.com/help/rtw/ref/code-generation-pane-general.html#bq26b58-1 Generate Code Only> checkb...

How can I create code for an embedded Linux target with Simulink hosted on Windows?

You can select the <http://www.mathworks.com/help/rtw/ref/code-generation-pane-general.html#bq26b58-1 Generate Code Only> checkb...

5년 이하 ago | 0

Answered

Vary the Random number sampling time when it control over digital clock (built in Block) with different sampling time inside Embedded MATLAB function?

Depending on what you want, you can either set the sample-time of the MATLAB Function block to be 1e-3 as described in <http://w...

Vary the Random number sampling time when it control over digital clock (built in Block) with different sampling time inside Embedded MATLAB function?

Depending on what you want, you can either set the sample-time of the MATLAB Function block to be 1e-3 as described in <http://w...

5년 이하 ago | 0

Answered

mexPrintf no longer works in r2014a?

In general <http://www.mathworks.com/help/simulink/sfg/ssprintf.html ssPrintf> is recommended over |mexPrintf| in S-functions, a...

mexPrintf no longer works in r2014a?

In general <http://www.mathworks.com/help/simulink/sfg/ssprintf.html ssPrintf> is recommended over |mexPrintf| in S-functions, a...

5년 이하 ago | 0

| accepted

Answered

Is it possible to read a value out of a graph, and use this value in simulink?

It looks like all you want is to interpolate your values. You may want to use the <http://www.mathworks.com/help/matlab/ref/inte...

Is it possible to read a value out of a graph, and use this value in simulink?

It looks like all you want is to interpolate your values. You may want to use the <http://www.mathworks.com/help/matlab/ref/inte...

5년 이하 ago | 0

Answered

How to create variable system in S-Function using feedback data from simulink or workspace)

You can simply add additional parameters to the main function as follows: function [sys,x0,str,ts] = mycsfunc(t,x,u,flag,P,...

How to create variable system in S-Function using feedback data from simulink or workspace)

You can simply add additional parameters to the main function as follows: function [sys,x0,str,ts] = mycsfunc(t,x,u,flag,P,...

5년 이하 ago | 0

| accepted

Answered

Problem of building simulink model to ccs 3.3

Use the "cd" command in MATLAB to change to a different directory that is not under "C:\Program Files\MATLAB\R2011a".

Problem of building simulink model to ccs 3.3

Use the "cd" command in MATLAB to change to a different directory that is not under "C:\Program Files\MATLAB\R2011a".

약 5년 ago | 5