I am working as an Application Support Engineer in MathWorks.

My research work includes development of Parallel Algorithms using API's like openMP, MPI -Message Passing Interface, GPU-cuda for computational fluid dynamics (CFD).

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

Answered

fminsearch giving results below initialisation point

Hello Udi, I think this can happen because it depends on the function and starting point (Since 'fminseach' function uses heu...

fminsearch giving results below initialisation point

Hello Udi, I think this can happen because it depends on the function and starting point (Since 'fminseach' function uses heu...

13 days ago | 1

| accepted

Answered

Is there a way to get the confidence bounds when fitting curves using optimisation toolbox

Hello Kieran, As you noted correctly curve fitting toolbox ('fit') gives the 'goodness of fit' metric whereas optimization ap...

Is there a way to get the confidence bounds when fitting curves using optimisation toolbox

Hello Kieran, As you noted correctly curve fitting toolbox ('fit') gives the 'goodness of fit' metric whereas optimization ap...

13 days ago | 0

Answered

Coupled ODE Solver Producing Unexpected Graph

Hello Brooke, Please refer to following documentation for solving coupled system of ODEs https://www.mathworks.com/help/symb...

Coupled ODE Solver Producing Unexpected Graph

Hello Brooke, Please refer to following documentation for solving coupled system of ODEs https://www.mathworks.com/help/symb...

13 days ago | 0

Answered

How do convert the following set of time dependent differential equations into a set of discrete equations? Please provide code.

Hello Varun, I am assuming the constant time step 'dt'. Please refer following snipet to get an idea and write the code x(k+...

How do convert the following set of time dependent differential equations into a set of discrete equations? Please provide code.

Hello Varun, I am assuming the constant time step 'dt'. Please refer following snipet to get an idea and write the code x(k+...

13 days ago | 0

Answered

1D PDE in Matlab with pdepe, first order

Hello JulianK, ‘pdepe’ is used to solve system of parabolic and elliptic PDEs with one temporal and one spatial variable (Make ...

1D PDE in Matlab with pdepe, first order

Hello JulianK, ‘pdepe’ is used to solve system of parabolic and elliptic PDEs with one temporal and one spatial variable (Make ...

15 days ago | 0

Answered

GPU coder : When I use GPU coder to any function, Do I need to type coder.gpu.kernelfun in all subfunctions in the main function?

Hello Lim, I think, Dynamic kernel invocation i.e calling kernels from within kernels is not supported by GPU coder yet. Theref...

GPU coder : When I use GPU coder to any function, Do I need to type coder.gpu.kernelfun in all subfunctions in the main function?

Hello Lim, I think, Dynamic kernel invocation i.e calling kernels from within kernels is not supported by GPU coder yet. Theref...

2 months ago | 0

| accepted

Answered

Plotting Streamlines that start from the origin for each streamline

Hello Omar, I suggest you to refer this documentataion for plotting streamlines. ~Pravin

Plotting Streamlines that start from the origin for each streamline

Hello Omar, I suggest you to refer this documentataion for plotting streamlines. ~Pravin

2 months ago | 0

Answered

How do I create a function to select the right excel table and data from this table with given parameters?

Hello, Refer following code to load the data in MATLAB workspace: [~,sheet_name]=xlsfinfo('Book1.xlsx'); % 'Book1.xlsx' is t...

How do I create a function to select the right excel table and data from this table with given parameters?

Hello, Refer following code to load the data in MATLAB workspace: [~,sheet_name]=xlsfinfo('Book1.xlsx'); % 'Book1.xlsx' is t...

2 months ago | 0

Answered

Write a function file finds real roots for any function f(x).

Hello Timothy, Please refer to following documentation which may help you in writing the function: https://www.mathworks.com...

Write a function file finds real roots for any function f(x).

Hello Timothy, Please refer to following documentation which may help you in writing the function: https://www.mathworks.com...

2 months ago | 0

Answered

Can someone help us modify our current code in order to store all of the desired output variables as columns of a single file?

Hello Steve, The objective mentioned in the question can be easily achieved by using the ‘save’ command. Refer following exam...

Can someone help us modify our current code in order to store all of the desired output variables as columns of a single file?

Hello Steve, The objective mentioned in the question can be easily achieved by using the ‘save’ command. Refer following exam...

2 months ago | 0

Answered

imshow Unrecognized function or variable 'imshow'.

Hello Malin, ‘imshow’ is part of base MATLAB which is present in the following directory: C:\Program Files\MATLAB\R2020a\toolb...

imshow Unrecognized function or variable 'imshow'.

Hello Malin, ‘imshow’ is part of base MATLAB which is present in the following directory: C:\Program Files\MATLAB\R2020a\toolb...

2 months ago | 2

| accepted

Answered

gui-2d-heat-transfer Variables

Hello Emir, The given code suggests that 'Tpoc(i,j)' is a temperature variable. Also, 'GUI 2D HEAT TRANSFER' is one of the...

gui-2d-heat-transfer Variables

Hello Emir, The given code suggests that 'Tpoc(i,j)' is a temperature variable. Also, 'GUI 2D HEAT TRANSFER' is one of the...

2 months ago | 0

Answered

matlab code solving for f(x)

Hello, Please refer to following links: https://www.mathworks.com/matlabcentral/fileexchange/69171-the-general-iteration-meth...

matlab code solving for f(x)

Hello, Please refer to following links: https://www.mathworks.com/matlabcentral/fileexchange/69171-the-general-iteration-meth...

3 months ago | 0

Answered

matrices jacobian function ?

Hello Massimiliano, Please refer to example given in the following documentation: https://www.mathworks.com/help/symbolic/jaco...

matrices jacobian function ?

Hello Massimiliano, Please refer to example given in the following documentation: https://www.mathworks.com/help/symbolic/jaco...

3 months ago | 0

Answered

Visualising/ Mapping data on CAD model

Hello Luke One of the possible ways to plot the colormap on CAD models is importing the model using the ‘importGeometry’ using ...

Visualising/ Mapping data on CAD model

Hello Luke One of the possible ways to plot the colormap on CAD models is importing the model using the ‘importGeometry’ using ...

3 months ago | 0

Answered

How to manipulate matrices to get the same dimensions?

Hello, From your question data representation i.e. ‘X’ (n by m) and ‘Y’ (n by 1) is not very clear for fitting ‘Y=Xβ’ (where m ...

How to manipulate matrices to get the same dimensions?

Hello, From your question data representation i.e. ‘X’ (n by m) and ‘Y’ (n by 1) is not very clear for fitting ‘Y=Xβ’ (where m ...

3 months ago | 0

Answered

Connecting two points with a curved line

Hello Tertius In addition to Bjorn Gustavsson and David Goodmanson I would like to add following points: In case of shear forc...

Connecting two points with a curved line

Hello Tertius In addition to Bjorn Gustavsson and David Goodmanson I would like to add following points: In case of shear forc...

3 months ago | 0

Answered

Does GPU coder have only one output?

Hello Lim, After analyzing the code, It is clear that you are not able to generate ‘MEX’ because the ‘%#codegen’ directive is m...

Does GPU coder have only one output?

Hello Lim, After analyzing the code, It is clear that you are not able to generate ‘MEX’ because the ‘%#codegen’ directive is m...

3 months ago | 0

| accepted

Answered

Nested for loop for beta and nu

From question and code, I assume that you are interested in solving coupled system of ODEs for different parameters. I have foll...

Nested for loop for beta and nu

From question and code, I assume that you are interested in solving coupled system of ODEs for different parameters. I have foll...

3 months ago | 0

Answered

Interpreting & checking multiple regression code & output

Hello Jen, Refer to following documentation for interpreting the results of ‘regress’ function: https://www.mathworks.com/help...

Interpreting & checking multiple regression code & output

Hello Jen, Refer to following documentation for interpreting the results of ‘regress’ function: https://www.mathworks.com/help...

3 months ago | 0

Answered

ODE parameter optimisation to fit dataset

Hello Maria, The procedure followed in the code is not consistent with the objectives mentioned in the description of a proble...

ODE parameter optimisation to fit dataset

Hello Maria, The procedure followed in the code is not consistent with the objectives mentioned in the description of a proble...

5 months ago | 0

| accepted

Answered

ThetaLim is not working with Polarscatter

Hello Junaid, I have brought this issue to the notice of our developers. They will investigate the matter further. Kind Rega...

ThetaLim is not working with Polarscatter

Hello Junaid, I have brought this issue to the notice of our developers. They will investigate the matter further. Kind Rega...

5 months ago | 0

| accepted

Answered

Use several pools of workers in a parfor loop

Hello Gabriel, Yes, most of the MATLAB in-built functions are multithreaded from 2008a Release. Following document may help y...

Use several pools of workers in a parfor loop

Hello Gabriel, Yes, most of the MATLAB in-built functions are multithreaded from 2008a Release. Following document may help y...

5 months ago | 0

Answered

How to set default grid to minor

Hello Jash, Use following command to set the default behavior of ‘Minor Grid’ on: set(groot,'defaultAxesXMinorGrid','on','de...

How to set default grid to minor

Hello Jash, Use following command to set the default behavior of ‘Minor Grid’ on: set(groot,'defaultAxesXMinorGrid','on','de...

5 months ago | 0

Answered

Why does the resolution become extremely bad when increasing the linewidth when using the the circle as marker.

Hello Pontus, I have tried to reproduce the steps, but it works fine in my case. I am assuming the user is using the older ve...

Why does the resolution become extremely bad when increasing the linewidth when using the the circle as marker.

Hello Pontus, I have tried to reproduce the steps, but it works fine in my case. I am assuming the user is using the older ve...

5 months ago | 0

| accepted

Answered

Restricting Lasso-coefficients

Hello Miximilian, To fit the data, it is important to understand how different models of regression work and what is the effe...

Restricting Lasso-coefficients

Hello Miximilian, To fit the data, it is important to understand how different models of regression work and what is the effe...

5 months ago | 0

Answered

Input structure for BiLSTM

Hello Sanjana, Refer to following example in order to understand the desired structures of cell arrays of training data for B...

Input structure for BiLSTM

Hello Sanjana, Refer to following example in order to understand the desired structures of cell arrays of training data for B...

6 months ago | 0

Answered

Need a better guess yo for consistent initial conditions_Error using daeic3 (line 230)

Hello Fidele, The approach followed by you in the attached script may not be the easiest way to solve this coupled system. To...

Need a better guess yo for consistent initial conditions_Error using daeic3 (line 230)

Hello Fidele, The approach followed by you in the attached script may not be the easiest way to solve this coupled system. To...

6 months ago | 0

Answered

How can i apply SVM or other classification methods on a cell array?

Hello Anamika, I am assuming you want data points along column and features along row direction. Follow the following steps ...

How can i apply SVM or other classification methods on a cell array?

Hello Anamika, I am assuming you want data points along column and features along row direction. Follow the following steps ...

6 months ago | 0

| accepted

Answered

Publish a file along with a file that has function called from another file

Hello Lucas, The task of including the external file contents in one document (using 'publish') can be achieved using ‘publis...

Publish a file along with a file that has function called from another file

Hello Lucas, The task of including the external file contents in one document (using 'publish') can be achieved using ‘publis...

6 months ago | 0