I am an Application Support Engineer at MathWorks. My main responsibilities are working on questions posted on MATLAB Answers.

My area of interest are Deep Learning and Autonomous Driving Vehicles.

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

Answered

Saving a variable in a .mat file

Hi, Have a look at this existing answer for the same question(link). It will resolve your issue.

Saving a variable in a .mat file

Hi, Have a look at this existing answer for the same question(link). It will resolve your issue.

2 months ago | 0

Answered

AM DEMODULATOR WITHOUT USING AMDEMOD FUNCTION

If you want to write code for demodulation without using amdemod, then you need to first select which method are you going to us...

AM DEMODULATOR WITHOUT USING AMDEMOD FUNCTION

If you want to write code for demodulation without using amdemod, then you need to first select which method are you going to us...

2 months ago | 0

| accepted

Answered

string 간격 조절(string interval)

There are 3 methods stated as follows: Let the string be S = 'asdffdsaasdf' The first method is to decompose the string into ...

string 간격 조절(string interval)

There are 3 methods stated as follows: Let the string be S = 'asdffdsaasdf' The first method is to decompose the string into ...

2 months ago | 1

| accepted

Answered

How I can convert huge matrix into small blocks

First read your text file into matrix. An example is in the link below https://in.mathworks.com/matlabcentral/answers/216671-re...

How I can convert huge matrix into small blocks

First read your text file into matrix. An example is in the link below https://in.mathworks.com/matlabcentral/answers/216671-re...

3 months ago | 0

Answered

Converting Matlab code to C without using Matlab coder.

Hi Ratnesh, You will have to use MATLAB coder inorder to get the C code for your use. As dsp.VariableFractionalDelay is a funct...

Converting Matlab code to C without using Matlab coder.

Hi Ratnesh, You will have to use MATLAB coder inorder to get the C code for your use. As dsp.VariableFractionalDelay is a funct...

3 months ago | 1

Answered

Speed up my function

Try MATLAB Online. It will run your code on fast MATLAB servers.

Speed up my function

Try MATLAB Online. It will run your code on fast MATLAB servers.

3 months ago | 0

Answered

Brace indexing is not supported for variables of this type.

Split up your last line of code into two line. indexes = app.AccelSNEditField == mergetables{:,1} to get logical values for th...

Brace indexing is not supported for variables of this type.

Split up your last line of code into two line. indexes = app.AccelSNEditField == mergetables{:,1} to get logical values for th...

3 months ago | 0

Answered

Vectorization of a loop that uses past values

You cannot vectorize the above code as you have cyclic dependency in your code.

Vectorization of a loop that uses past values

You cannot vectorize the above code as you have cyclic dependency in your code.

3 months ago | 0

| accepted

Answered

What is wrong with my code

Change to the following code len = length(N) %N is 1x100 you want i to go from 1 to 100 therefore change to length...

What is wrong with my code

Change to the following code len = length(N) %N is 1x100 you want i to go from 1 to 100 therefore change to length...

3 months ago | 0

Answered

Stack saved .fig for comparison

Hi Kindly go through the following links with similar questions https://in.mathworks.com/matlabcentral/answers/333909-how-to-pl...

Stack saved .fig for comparison

Hi Kindly go through the following links with similar questions https://in.mathworks.com/matlabcentral/answers/333909-how-to-pl...

3 months ago | 0

Answered

imageInputLayer normalization problem matlab

Hi what you are doing is correct but I will not recommend this method. Kindly have a look at the following example and see how h...

imageInputLayer normalization problem matlab

Hi what you are doing is correct but I will not recommend this method. Kindly have a look at the following example and see how h...

3 months ago | 0

| accepted

Answered

How can I calculate the areas between these two curves?

To calculate the area B change the follwing line of code AArea = trapz(AF{:,1},AF{:,2}); to AArea = abs(trapz(AF{:,1},(AF{:,2...

How can I calculate the areas between these two curves?

To calculate the area B change the follwing line of code AArea = trapz(AF{:,1},AF{:,2}); to AArea = abs(trapz(AF{:,1},(AF{:,2...

3 months ago | 0

Answered

Information criteria application for model structure selection

AIC penalizes complex models less, meaning that it may put more emphasis on model performance, on the training dataset and in tu...

Information criteria application for model structure selection

AIC penalizes complex models less, meaning that it may put more emphasis on model performance, on the training dataset and in tu...

3 months ago | 0

Answered

Plotting an Intensity profile out of a 3D Matrix

Hi Have a look at the following link. Hope it helps.

Plotting an Intensity profile out of a 3D Matrix

Hi Have a look at the following link. Hope it helps.

3 months ago | 0

Answered

Scale points on scaled image

The location of points remain the same as you are not using the image II anywhere. All operations are performed on I itself. In ...

Scale points on scaled image

The location of points remain the same as you are not using the image II anywhere. All operations are performed on I itself. In ...

3 months ago | 0

| accepted

Answered

How to run multiple MATLAB tasks?

Hi Kindly go through the following same discussion threads https://www.mathworks.com/matlabcentral/answers/2081-how-to-execut...

How to run multiple MATLAB tasks?

Hi Kindly go through the following same discussion threads https://www.mathworks.com/matlabcentral/answers/2081-how-to-execut...

5 months ago | 0

Answered

How to create Simulink Stateflow to test cases for Test departement

Hi I kindly follow the links below to create test cases in Simulink, you can modify them accrodingly to your needs for Simscap...

How to create Simulink Stateflow to test cases for Test departement

Hi I kindly follow the links below to create test cases in Simulink, you can modify them accrodingly to your needs for Simscap...

5 months ago | 0

Answered

How to update Simscape library?

No, there is no way you can upgrade from v4.0 to v4.5 without upgrading MATLAB itself as each particular update employs a large ...

How to update Simscape library?

No, there is no way you can upgrade from v4.0 to v4.5 without upgrading MATLAB itself as each particular update employs a large ...

5 months ago | 0

Answered

Error in first line, looks fine though

On top of what Mohammad Sami said, after moving the matrix A and B just above second last line of your code so all variable defi...

Error in first line, looks fine though

On top of what Mohammad Sami said, after moving the matrix A and B just above second last line of your code so all variable defi...

5 months ago | 0

Answered

Evaluating the computational complexity of two algorithms

Depends which algorithm you are using for matrix multiplication. For two matrices Normal Matrix Multiplication - O(). Strass...

Evaluating the computational complexity of two algorithms

Depends which algorithm you are using for matrix multiplication. For two matrices Normal Matrix Multiplication - O(). Strass...

5 months ago | 0

Answered

Show and hide variable of interest/ unimportant in workspace ?

Hi Tuong Kindly refer to the following threads regarding the same https://www.mathworks.com/matlabcentral/answers/301355-show-...

Show and hide variable of interest/ unimportant in workspace ?

Hi Tuong Kindly refer to the following threads regarding the same https://www.mathworks.com/matlabcentral/answers/301355-show-...

5 months ago | 0

Answered

how can i convert a 3d figure to obj file formate ?

Kindly have a look at links below https://www.mathworks.com/matlabcentral/answers/295969-how-to-convert-to-obj-format Hope it ...

how can i convert a 3d figure to obj file formate ?

Kindly have a look at links below https://www.mathworks.com/matlabcentral/answers/295969-how-to-convert-to-obj-format Hope it ...

5 months ago | 1

Answered

"not recognized as an internal or external command, operable program or batch file"

I think your operating system is Windows on which MATLAB is installed therefore its not recognizing the command 'nproc' as its a...

"not recognized as an internal or external command, operable program or batch file"

I think your operating system is Windows on which MATLAB is installed therefore its not recognizing the command 'nproc' as its a...

5 months ago | 0

Answered

Genetic algorithm to optimize hyperparameters in a Deep learning net

Hi Renita, Kindly go through the following code in File Exchange https://www.mathworks.com/matlabcentral/fileexchange/72283-h...

Genetic algorithm to optimize hyperparameters in a Deep learning net

Hi Renita, Kindly go through the following code in File Exchange https://www.mathworks.com/matlabcentral/fileexchange/72283-h...

5 months ago | 0

| accepted

Answered

AlexNet for Semantic segmentation

Hi Raza Ali, You can refer to the following implementation https://www.mathworks.com/matlabcentral/fileexchange/65851-semantic...

AlexNet for Semantic segmentation

Hi Raza Ali, You can refer to the following implementation https://www.mathworks.com/matlabcentral/fileexchange/65851-semantic...

5 months ago | 0

| accepted

Answered

How to include a multi-file C++ library to S-function builder?

Hi Gabriel, I think the above error is more related to the path. If you have included the "script.h" it includes the internal i...

How to include a multi-file C++ library to S-function builder?

Hi Gabriel, I think the above error is more related to the path. If you have included the "script.h" it includes the internal i...

5 months ago | 0

Answered

What are some important Matlab tool boxes which are important for mechanical engineer?

It totally depends on what your subjects are or what you want to achieve with a particular projet. MATLAB provides an array of d...

What are some important Matlab tool boxes which are important for mechanical engineer?

It totally depends on what your subjects are or what you want to achieve with a particular projet. MATLAB provides an array of d...

5 months ago | 0

Answered

how to upload toolbox in matlab my matlab version R2020a

You have to write the code in a way function is written. Think of what are the possible inputs you want the user can give, then ...

how to upload toolbox in matlab my matlab version R2020a

You have to write the code in a way function is written. Think of what are the possible inputs you want the user can give, then ...

5 months ago | 0

Answered

Amplitude spectrum from Excel

Hi Anton Kindly refer to the following link on how to read data from excel file into MATLAB. Below is the code to replicate th...

Amplitude spectrum from Excel

Hi Anton Kindly refer to the following link on how to read data from excel file into MATLAB. Below is the code to replicate th...

5 months ago | 0

Answered

Need to find difference in maximum and minimum concentration

As Darova pointed out just use minConc = min(c); maxConc = max(c); to get minium and maximum concentration at t = 0. And it...

Need to find difference in maximum and minimum concentration

As Darova pointed out just use minConc = min(c); maxConc = max(c); to get minium and maximum concentration at t = 0. And it...

5 months ago | 0