# Kaustubha Govind

### MathWorks

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

**Statistics**

RANK**34**

of 287 827

REPUTATION**5 594**

CONTRIBUTIONS

**0** Questions

**2 202** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**1 071**

RANK

of 19 432

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Can I call variables from a mask dialogue box in an Embedded MATLAB function block without having to connect variable blocks

Yes, you can convert your inputs to parameters (whose names must match that of the workspace variables). You simply need to chan...

mer än 4 år ago | 3

| accepted

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

mer än 5 år ago | 4

| accepted

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

nästan 6 år ago | 1

| accepted

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

mer än 7 år ago | 2

| accepted

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

mer än 8 år ago | 0

Character Variables in Simulink

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

ungefär 9 år ago | 0

| accepted

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

ungefär 9 år ago | 1

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

ungefär 9 år ago | 1

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

ungefär 9 år ago | 0

| accepted

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

ungefär 9 år ago | 0

| accepted

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

ungefär 9 år ago | 0

| accepted

Data bus Signals in Simulink

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

ungefär 9 år ago | 0

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

ungefär 9 år ago | 0

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

ungefär 9 år ago | 0

| accepted

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

mer än 9 år ago | 0

| accepted

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

mer än 9 år ago | 1

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

mer än 9 år ago | 0

| accepted

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

mer än 9 år ago | 0

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

mer än 9 år ago | 0

| accepted

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

mer än 9 år ago | 0

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

mer än 9 år ago | 1

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

mer än 9 år ago | 0

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

mer än 9 år ago | 0

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

mer än 9 år ago | 0

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

mer än 9 år ago | 0

| accepted

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

mer än 9 år ago | 0

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

mer än 9 år ago | 1

| accepted

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

mer än 9 år ago | 5

Integration problem between Simulink and CCS v4.2 - for TI C2000

Please see if <http://www.mathworks.com/matlabcentral/answers/98075-why-is-the-echo-command-not-recognized-when-i-build-and-exec...

mer än 9 år ago | 0

Not have enough information to determine output sizes

I think it is the loop in your model that is confusing Simulink propagation. You may want to insert a <http://www.mathworks.com/...

mer än 9 år ago | 5

| accepted