I'm Divya, an Associate in the Engineering Development Group at MathWorks, Hyderabad. I'm curious to explore any toolbox of MATLAB and SIMULINK.

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

Answered

Save an updating output

Hi Mohammad, You could achieve this functionality by using GoTo Block and From Block in Simulink. Have a look at the example :...

Save an updating output

Hi Mohammad, You could achieve this functionality by using GoTo Block and From Block in Simulink. Have a look at the example :...

6 months ago | 0

Answered

How do you create a panorama with multiple images?

Hi Alexander, You could use the imread and montage functions from Image Processing Toolbox to accomplish your task instead of u...

How do you create a panorama with multiple images?

Hi Alexander, You could use the imread and montage functions from Image Processing Toolbox to accomplish your task instead of u...

6 months ago | 0

Answered

Matlab color coded matrix

Hi Dominic, Have a look at a similar question : https://in.mathworks.com/matlabcentral/answers/11513-display-matrix-values-with...

Matlab color coded matrix

Hi Dominic, Have a look at a similar question : https://in.mathworks.com/matlabcentral/answers/11513-display-matrix-values-with...

6 months ago | 0

Answered

How can find the maximum of f(x) by updating initial guesses in a loop?

Hi Loic, I dont see any issue with the updation of initial guesses in your code. The initial guesses keep updating until the 3...

How can find the maximum of f(x) by updating initial guesses in a loop?

Hi Loic, I dont see any issue with the updation of initial guesses in your code. The initial guesses keep updating until the 3...

6 months ago | 0

Answered

How to render all plot information into a metafile using copy figure, saveas, print, or any other option?

Hi Burak, This is a known issue in MATLAB. As a workaround try appending this code at the end of your code: EDIT : style = ge...

How to render all plot information into a metafile using copy figure, saveas, print, or any other option?

Hi Burak, This is a known issue in MATLAB. As a workaround try appending this code at the end of your code: EDIT : style = ge...

6 months ago | 0

Answered

How do I retrieve App.UIFigure after diary on

Hi, Try using figure(FigHandle) %FigHandle is the handle for the GUI figure to bring the Figure to focus.

How do I retrieve App.UIFigure after diary on

Hi, Try using figure(FigHandle) %FigHandle is the handle for the GUI figure to bring the Figure to focus.

6 months ago | 0

Answered

how can I overcome on algebraic loop in simulink

Hi Rashed, This issue might occur when you are using the integrator block with 0 initial condition, try changing the initial co...

how can I overcome on algebraic loop in simulink

Hi Rashed, This issue might occur when you are using the integrator block with 0 initial condition, try changing the initial co...

6 months ago | 1

Answered

I need to under sample, perfect sample, and over sample a sinusoidal signal.

Hi Aman, As the frequency of signal is 100Hz(f) the sampling frequency: fs < 2f - under sampling fs = 2f - perfect sampling ...

I need to under sample, perfect sample, and over sample a sinusoidal signal.

Hi Aman, As the frequency of signal is 100Hz(f) the sampling frequency: fs < 2f - under sampling fs = 2f - perfect sampling ...

6 months ago | 0

| accepted

Answered

How to prompt an error message box if no image is selected? (App Design)

Hi Cyrick, You could use the below model code to achieve your purpose: [file,path] = uigetfile; % Open file selection dialog b...

How to prompt an error message box if no image is selected? (App Design)

Hi Cyrick, You could use the below model code to achieve your purpose: [file,path] = uigetfile; % Open file selection dialog b...

6 months ago | 0

Answered

unable to use Aerospace Blockset function eci2ecef

Hi Eduardo, The "eci2ecef" is part of the set of function in CubeSats hence the function requires the 'Aerospace Blockset CubeS...

unable to use Aerospace Blockset function eci2ecef

Hi Eduardo, The "eci2ecef" is part of the set of function in CubeSats hence the function requires the 'Aerospace Blockset CubeS...

6 months ago | 0

| accepted

Answered

How to use syms inside a function that is called in simulink?

Hi Vinayak, As the error describes the syms function is not supported for Code Generation. So a possible workaround in your cas...

How to use syms inside a function that is called in simulink?

Hi Vinayak, As the error describes the syms function is not supported for Code Generation. So a possible workaround in your cas...

6 months ago | 0

| accepted

Answered

Write a for loop to find the mean and standard error of reaction time in each condition and put them in a structure?

Have a look at a similar question : https://in.mathworks.com/matlabcentral/answers/166201-how-to-iterate-through-structure-field...

Write a for loop to find the mean and standard error of reaction time in each condition and put them in a structure?

Have a look at a similar question : https://in.mathworks.com/matlabcentral/answers/166201-how-to-iterate-through-structure-field...

6 months ago | 0

Answered

Using values from a for loop in another for loop

Hi Adam, After making the modification suggested by Arthur you are plotting the data for each iteration in your 2nd for loop. S...

Using values from a for loop in another for loop

Hi Adam, After making the modification suggested by Arthur you are plotting the data for each iteration in your 2nd for loop. S...

6 months ago | 0

Answered

Where does the output of Simulink "To workspace" blocks go when the project is deployed?

Hi Daniel, Have a look at this link : https://in.mathworks.com/help/supportpkg/rtlsdrradio/ug/run-model-in-external-mode.html ...

Where does the output of Simulink "To workspace" blocks go when the project is deployed?

Hi Daniel, Have a look at this link : https://in.mathworks.com/help/supportpkg/rtlsdrradio/ug/run-model-in-external-mode.html ...

6 months ago | 0

Answered

plot overdamped response of the voltage across the capacitor.

Hi Sasheel, The voltage across the capacitor is getting saturated at approximately 1ms itself but your code is plotting the dat...

plot overdamped response of the voltage across the capacitor.

Hi Sasheel, The voltage across the capacitor is getting saturated at approximately 1ms itself but your code is plotting the dat...

6 months ago | 0

| accepted

Answered

Solve Differential Algebraic Equations (DAEs)

Have a look at a similar question : https://www.mathworks.com/matlabcentral/answers/102944-what-is-the-meaning-of-this-dae-appea...

Solve Differential Algebraic Equations (DAEs)

Have a look at a similar question : https://www.mathworks.com/matlabcentral/answers/102944-what-is-the-meaning-of-this-dae-appea...

6 months ago | 0

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

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

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

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

8 months ago | 1

| accepted

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

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

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

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

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

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

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

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

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

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

11 months ago | 0