# Ayush Gupta

### MathWorks

Followers: 0 Following: 0

I am Application Support Engineer at Mathworks. My responsibility is to provide the best support for an application like ML,ADT,Image Processing and Deep Learning.

Disclaimer: Any articles /ideas/opinions here are my own and in no way reflect that of Mathworks.

**Statistics**

**MATLAB Answers**

**0** Questions

**89** Answers

RANK**691**

of 291,186

REPUTATION**102**

CONTRIBUTIONS

**0** Questions

**89** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**11**

RANK

of 19,765

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 145,848

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

plotting Y1(2t) to get the correct figure instead of Y1(t)

The code works fine and there is no problem in it. One possible reason for this could be that these equations or functions are b...

3 years ago | 0

MATLAB Syntex Problem for optimization

The MATLAB’s optimization toolbox can be used to solve this problem. We can define a problem using optimproblem function in MAT...

3 years ago | 0

| accepted

How do I open an m-file 1 from another m-file 2 and write a multi-line on m-file 1 at a specific position from m-file 2?

It is possible to edit a m file with the help of another. If we know to edit a single m file, then we can iterate over all such ...

3 years ago | 0

why Matlab show me INI_PHASE must be a real scalar?

The current documentation for qamdemod function doesn’t use INI_PHASE and since you are using a previous version, you should be ...

3 years ago | 0

About Table Comparing in matlab code

The data in excel file can be read using the readmatrix function in MATLAB. The Test_data in the second sheet can be given value...

3 years ago | 1

How to import data and remove headers

The data from the text file can be imported using importdata function in MATLAB. To ignore the header of the file we can use the...

3 years ago | 0

How to simplify non-linear equations for lsqnonlin

To simplify equations in MATLAB, simplify function can be used for it. To read about it and have some examples to check how it w...

3 years ago | 0

Make for loop and extract data from different tables within a structure.

The excel files here can be read directly with the help of readmatrix function. Suppose there is an excel file of name abc.xlsx,...

3 years ago | 0

While Loop goes to debug

The script is working fine and does not go into debugging mode on 2019b version. To refer to how to use while loop and its docum...

3 years ago | 1

| accepted

Operator '*' is not supported for operands of type 'cell' after changing the cell

The two values we are trying to multiply are cell array and one cannot multiply cell arrays. You might be able to use Cell1{...

3 years ago | 0

How to set axis limit as a function of time with fanimator

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

3 years ago | 0

Intlinprog, how to see some parametr

Optimization tools like intlinprog find ONE solution to a problem. They are not designed to search your space and return multipl...

3 years ago | 0

MATLAB Application Server version 8.3 could not be initialised

A similar question has been answered here. If this does not help, please share the reproduction steps so we can have a deeper in...

3 years ago | 0

Align the Legend Title to the Legend body

The legend title is by-default left aligned to legend body. Refer to the code below which generates the following picture and re...

3 years ago | 0

How to use the classification learner app?

Type classification Learner in command line and classification learner app will open. Make sure to load the data in the workspac...

3 years ago | 0

Controlchart function with the conditional variance?

The problem that is arising here is because of the fact the argument given to sigma that is v1 is, it can’t take multiple output...

3 years ago | 0

How can I create a table containing all iterations?

To create a table, store every instance of iter, xr, func(xr), and es at each iteration into a list that is globally and append ...

3 years ago | 1

| accepted

I need help in developing a function file GE_m(A,b) to determine the pivot row r such that a(rk) is the first nonzero entry among a(kk),a(k+1)...a(n,k). if a(kk)=a(k+1,k)=a(nk)=0 then pivot out that 'A is not invertible' and quit.

The following problem can be solved by using nested for loop. Refer to the following code to see how to solve this: function [...

3 years ago | 0

| accepted

it won't run as it keeps showing illegal use of the word else

The problem here is with the syntax of while loop, where else is being used inside while loop without using if first. Read about...

3 years ago | 0

how to show A is non singular using GE and ut function files. im using this code and its showing error in line 3 which is n=length(b);

Calculating determinant is a terribly inefficient thing for larger arrays. So, a nice alternative is to use the product of the d...

3 years ago | 0

| accepted

I can't insert latex equation in live script

This could be the browser issue because it seems to work fine in windows for me. Changing the browser can solve the problem.

3 years ago | 0

| accepted

Importing .bin file and doing Time Domain Analysis

A bin file can be imported in MATLAB using fread function. Suppose we have a bin file named input.bin, refer to the following c...

3 years ago | 0

How to calculate P at each x values?

The problem with the approach suggested above is only the values of last iteration of x will be stored in P values. So, to keep ...

3 years ago | 0

Fitted error vs error of original fit

There seems to be a confusion between error of original fit which is calculated previously whereas fitted error of a fit is the ...

3 years ago | 0

Function not taking updated value of variable when it is passed to it

The problem in the above code is the variable kin that is changing with every iteration, it is not being used anywhere for plott...

3 years ago | 0

for loop, if loop, while loop or combination?

Refer to the following code on how to do this: det_rate = [0.3, 0.2, 0.5, 0.1]; T = 8; % T is total searching ti...

3 years ago | 0

| accepted

ANYONE KONWS HOW SIMPLENAR_DATASET IS GENERATED?

The simplenar_dataset is a nonlinear 2-delay feedback relationship, it is generated by a user defined function which returns the...

3 years ago | 0

How does the algorithm of the residualSimilarityModel looks like?

1-step prediction for a model is for a time series IT = {Y1, Y2 ,…, YT }. At time T, we want to forecast YT+1, YT+2, YT+1, YT+2...

3 years ago | 1

| accepted

Can I do a curve fit tool in a for loop?

The model coefficients for a Gaussian fit can be found out directly from the model. Refer to the following code on how to get t...

3 years ago | 0

| accepted

I am trying to store the values of each iteration of 0.01 in my for loop into a matrix. Could anyone help?

The history of tolerance and corresponding x values can be stored if we treat them as vectors and in each iteration of for loop ...

3 years ago | 0