I am an Associate in Engineering Development Group at MathWorks, Hyderabad. I am interested in exploring all MathWorks products.

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

Answered

How to identify the input and output in a c code generated from Simulink model

Hi Vivek, In order to provide customized inputs you need to change the input source blocks used in the model during simulation...

How to identify the input and output in a c code generated from Simulink model

Hi Vivek, In order to provide customized inputs you need to change the input source blocks used in the model during simulation...

21 days ago | 1

| accepted

Answered

Indexing directly on a matrix literal

Hi Bill, You could have a look at a similar question : https://www.mathworks.com/matlabcentral/answers/78242-indexing-of-fresh...

Indexing directly on a matrix literal

Hi Bill, You could have a look at a similar question : https://www.mathworks.com/matlabcentral/answers/78242-indexing-of-fresh...

21 days ago | 0

Answered

strtok not working with certain char array!! Help

Hi Rimmi, I feel strtok s working as intended here. In your case when the message becomes 'kknight' the delimiter becomes 'k'(m...

strtok not working with certain char array!! Help

Hi Rimmi, I feel strtok s working as intended here. In your case when the message becomes 'kknight' the delimiter becomes 'k'(m...

22 days ago | 0

Answered

getting values from work space to simulink and simulating a signal

Hi, I am assuming you want to acess the 58th row of a workspace variable at a sampling rate of 0.004sec. This could be done by ...

getting values from work space to simulink and simulating a signal

Hi, I am assuming you want to acess the 58th row of a workspace variable at a sampling rate of 0.004sec. This could be done by ...

24 days ago | 0

Answered

Open simscape results explorer (sscexplore) with data in .mat-files / workspace data

Hi Andreas, The input arguments of the function sscexplore must be of the type Node. Try and check if you are passing the right...

Open simscape results explorer (sscexplore) with data in .mat-files / workspace data

Hi Andreas, The input arguments of the function sscexplore must be of the type Node. Try and check if you are passing the right...

1 month ago | 1

Answered

How to animate a stick figure?

Have a look at this function to create animated lines in MATLAB: https://www.mathworks.com/help/matlab/ref/animatedline.html

How to animate a stick figure?

Have a look at this function to create animated lines in MATLAB: https://www.mathworks.com/help/matlab/ref/animatedline.html

2 months ago | 0

Answered

Taylor series Approximation of x*cos(x) at x = 2pi/3

Hi, I'm assuming you want to know the number of terms in the T12 expression. To do this you could use the function children ...

Taylor series Approximation of x*cos(x) at x = 2pi/3

Hi, I'm assuming you want to know the number of terms in the T12 expression. To do this you could use the function children ...

2 months ago | 0

Answered

Defining Simulink block parameters which are dependent on a signal value in Simulink

Have a look at a similar question: https://www.mathworks.com/matlabcentral/answers/402030-how-to-use-input-signals-as-variables...

Defining Simulink block parameters which are dependent on a signal value in Simulink

Have a look at a similar question: https://www.mathworks.com/matlabcentral/answers/402030-how-to-use-input-signals-as-variables...

2 months ago | 1

Answered

how can include simscape in simulink library?

Hi Abduwalli, If you couldn't already see Simscape in Simulink Library it means you haven't installed it. So try installing S...

how can include simscape in simulink library?

Hi Abduwalli, If you couldn't already see Simscape in Simulink Library it means you haven't installed it. So try installing S...

2 months ago | 0

Answered

export matlab to solidworks

Hi Omri, Have a look at these links: https://blogs.mathworks.com/pick/2009/06/05/writing-to-stl-files/ https://www.mathworks....

export matlab to solidworks

Hi Omri, Have a look at these links: https://blogs.mathworks.com/pick/2009/06/05/writing-to-stl-files/ https://www.mathworks....

2 months ago | 0

Answered

How can I demonstrate the pulse width as number on display in Simulink?

Hi Mohamed, Assuming you have the Frequency and Duty_Cycle as inputs to the model, you could calculate the Pulse Width as: w...

How can I demonstrate the pulse width as number on display in Simulink?

Hi Mohamed, Assuming you have the Frequency and Duty_Cycle as inputs to the model, you could calculate the Pulse Width as: w...

2 months ago | 0

Answered

pareto-ranking based fitness

Hi, Have a look at gamultiobj function to find the pareto front of multiple fitness functions using genetic algorithm. Hope it...

pareto-ranking based fitness

Hi, Have a look at gamultiobj function to find the pareto front of multiple fitness functions using genetic algorithm. Hope it...

4 months ago | 0

Answered

Values in cell array keep getting overwritten

Hi Zexi Try using the following modified code to serve your purpose. Have a look at the comments for a better understanding reg...

Values in cell array keep getting overwritten

Hi Zexi Try using the following modified code to serve your purpose. Have a look at the comments for a better understanding reg...

4 months ago | 0

Answered

How would one update the plotted data without resting the figure axes labels and other format elements?

Hi Josh, Try placing the pause(0.01) line of code after %% Formating elements section i.e. after the set(gcf,'color,'w') and no...

How would one update the plotted data without resting the figure axes labels and other format elements?

Hi Josh, Try placing the pause(0.01) line of code after %% Formating elements section i.e. after the set(gcf,'color,'w') and no...

4 months ago | 0

Answered

Matlab code to Extract one cell from multiple .csv files formatted in the same way, then create matlab matrix and output table in .csv

Hi Ayesha, Have a look at a similar question here. Hope it helps!

Matlab code to Extract one cell from multiple .csv files formatted in the same way, then create matlab matrix and output table in .csv

Hi Ayesha, Have a look at a similar question here. Hope it helps!

5 months ago | 0

Answered

sum pixel value in an image.

Hi Ahmad, The code and file you have provided are giving the following results. Are these the expected ones?

sum pixel value in an image.

Hi Ahmad, The code and file you have provided are giving the following results. Are these the expected ones?

5 months ago | 0

Answered

How to plot Design Structure Matrix?

Hi Hau Kit Yong, You could use the below code to plot empty squares using spy function spy(sparse_matrix,'rs') %for red square...

How to plot Design Structure Matrix?

Hi Hau Kit Yong, You could use the below code to plot empty squares using spy function spy(sparse_matrix,'rs') %for red square...

5 months ago | 0

Answered

sum pixel value in an image.

Hi Ahmad, Yes, the dicomread function returns the pixel values of the file and stores it in variable X in the above mentioned c...

sum pixel value in an image.

Hi Ahmad, Yes, the dicomread function returns the pixel values of the file and stores it in variable X in the above mentioned c...

5 months ago | 0

Answered

Problems with intersect function

Hi Diana, Have a look at a question with similar issue : https://www.mathworks.com/matlabcentral/answers/418668-digraph-plot-bu...

Problems with intersect function

Hi Diana, Have a look at a question with similar issue : https://www.mathworks.com/matlabcentral/answers/418668-digraph-plot-bu...

5 months ago | 0

Answered

Fmincon with UseParrallel option + Simulink model with variant control in rapid accelerator mode

Hi Eyefujirin, Try having a look at a similar question : https://www.mathworks.com/matlabcentral/answers/124066-problem-using-o...

Fmincon with UseParrallel option + Simulink model with variant control in rapid accelerator mode

Hi Eyefujirin, Try having a look at a similar question : https://www.mathworks.com/matlabcentral/answers/124066-problem-using-o...

5 months ago | 0

Answered

Input ports (1, Action) If Action Subsystem' are involved in the loop?

Hi Adit, I could see an algebraic loop formed in your model by the signal coming to Total_pressure_BP input of Pump 1 subsystem...

Input ports (1, Action) If Action Subsystem' are involved in the loop?

Hi Adit, I could see an algebraic loop formed in your model by the signal coming to Total_pressure_BP input of Pump 1 subsystem...

5 months ago | 0

Answered

Simualted Annealing with Discrete Points Optimization

Hi Mingcheng, Have a look at this link to perform Discrete Simuated Annealing. Hope it helps!

Simualted Annealing with Discrete Points Optimization

Hi Mingcheng, Have a look at this link to perform Discrete Simuated Annealing. Hope it helps!

5 months ago | 0

| accepted

Answered

How to implement multiple excels with same time horizon?

Hi Jiexiang, Have a look at similar question in this link : https://www.mathworks.com/matlabcentral/answers/89176-summing-numer...

How to implement multiple excels with same time horizon?

Hi Jiexiang, Have a look at similar question in this link : https://www.mathworks.com/matlabcentral/answers/89176-summing-numer...

5 months ago | 0

| accepted

Answered

Ploting a Bar graph based on the amount of specific values in a colum

Hi Andrej, I'm assuming that you are trying to plot the ages of people with salary greater than 50K on X-axis and the amount by...

Ploting a Bar graph based on the amount of specific values in a colum

Hi Andrej, I'm assuming that you are trying to plot the ages of people with salary greater than 50K on X-axis and the amount by...

5 months ago | 0

Answered

sum pixel value in an image.

Hi Ahmad, Try using the following code to find the sum of pixels of images in DICOM file. n=[]; % Find sum of images by provi...

sum pixel value in an image.

Hi Ahmad, Try using the following code to find the sum of pixels of images in DICOM file. n=[]; % Find sum of images by provi...

5 months ago | 0

| accepted

Answered

How to use the latex interpreter properly in appdesigner figures?

Hi Rick, I have brought this issue to the notice of our developers. They will investigate the matter further.

How to use the latex interpreter properly in appdesigner figures?

Hi Rick, I have brought this issue to the notice of our developers. They will investigate the matter further.

5 months ago | 0

| accepted

Answered

How do i determine and plot rerlative importance in simple bar plot using input-hidden weight and hidden-output weight

Hi Ikechukwu Ejim, You could have a look at gramm(complete data visualization toolbox). Hope it helps!

How do i determine and plot rerlative importance in simple bar plot using input-hidden weight and hidden-output weight

Hi Ikechukwu Ejim, You could have a look at gramm(complete data visualization toolbox). Hope it helps!

6 months ago | 0

Answered

How to compile gtcc.m?!

Hi Jack, Code generation does not support assigning an object of a value class into a nontunable property. It seems like the ‘W...

How to compile gtcc.m?!

Hi Jack, Code generation does not support assigning an object of a value class into a nontunable property. It seems like the ‘W...

6 months ago | 0

Answered

Throughput measurement for Simulink model

Hi, You could have a look at the documentation of previous releases at this link. You can have a look at these examples in R...

Throughput measurement for Simulink model

Hi, You could have a look at the documentation of previous releases at this link. You can have a look at these examples in R...

6 months ago | 0

Answered

Do you have the two-phase properties table amonia similar to the table for R134a

Hi Craig, If you have REFPROP software by the National Institute of Standards and Technology installed, you can automatically ...

Do you have the two-phase properties table amonia similar to the table for R134a

Hi Craig, If you have REFPROP software by the National Institute of Standards and Technology installed, you can automatically ...

6 months ago | 0