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

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

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

8 days ago | 0

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

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

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

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

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

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

3 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!

3 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?

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

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

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

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

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

4 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!

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

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

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

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

4 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!

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

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

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

5 months ago | 0

Answered

How I should make a loop for coefvct's roots?

Hi Nima, It is not always necessary to create a coefficient vector and use roots function to solve a polynomial equation. You ...

How I should make a loop for coefvct's roots?

Hi Nima, It is not always necessary to create a coefficient vector and use roots function to solve a polynomial equation. You ...

5 months ago | 1

| accepted

Answered

Obtaining logical volume array from cartesian coordinates of volumetric mesh

Hi OzzWal, You could change data at specified cartesian coordinates by creating point cloud object from the original data and ...

Obtaining logical volume array from cartesian coordinates of volumetric mesh

Hi OzzWal, You could change data at specified cartesian coordinates by creating point cloud object from the original data and ...

5 months ago | 0

Answered

Storing live data of sensors into arrays

Hi Lavanya, Have a look at a similar question : https://www.mathworks.com/matlabcentral/answers/437548-need-help-with-storing...

Storing live data of sensors into arrays

Hi Lavanya, Have a look at a similar question : https://www.mathworks.com/matlabcentral/answers/437548-need-help-with-storing...

5 months ago | 0

Answered

How to deembed the Sparam?

Hi, Have a look at this example showing extraction and de-embedding of S-parameters data from a file using "sparameters" and "d...

How to deembed the Sparam?

Hi, Have a look at this example showing extraction and de-embedding of S-parameters data from a file using "sparameters" and "d...

5 months ago | 0

| accepted

Answered

Is there a way to check some processing flags for complex algorithms with multiple calculations if overflow, underflow occurred in processing ?

Hi Firan, You could use "dbstop" function to pause execution at the line that meets a specified condition. The below line of co...

Is there a way to check some processing flags for complex algorithms with multiple calculations if overflow, underflow occurred in processing ?

Hi Firan, You could use "dbstop" function to pause execution at the line that meets a specified condition. The below line of co...

5 months ago | 1

| accepted