# Ayush Gupta

### MathWorks

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

**89** Risposte

RANK**637**

of 273.604

REPUTAZIONE**100**

CONTRIBUTI

**0** Domande

**89** Risposte

ACCETTAZIONE DELLE RISPOSTE **
0.00%
**

VOTI RICEVUTI**10**

RANK

of 123.086

CONTRIBUTI

**0** Problemi

**0** Soluzioni

PUNTEGGIO**0**

NUMERO DI BADGE**0**

CONTRIBUTI**0 Post**

CONTRIBUTI**0** Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI**0** Punti principali

NUMERO MEDIO DI LIKE

**Content Feed**

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

oltre 2 anni fa | 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...

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 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 ...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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,...

oltre 2 anni fa | 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...

oltre 2 anni fa | 1

| accettato

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

oltre 2 anni fa | 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.

oltre 2 anni fa | 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...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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 ...

oltre 2 anni fa | 1

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 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...

oltre 2 anni fa | 0

| accettato

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.

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 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 ...

oltre 2 anni fa | 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 ...

oltre 2 anni fa | 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...

oltre 2 anni fa | 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...

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 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...

oltre 2 anni fa | 1

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0