Community Profile

# Ayush Gupta

### MathWorks

Last seen: oltre 2 anni fa Attivo dal 2020

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.

#### Content Feed

Visto da

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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

Risposto
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