Community Profile

# Divija Aleti

### MathWorks

Last seen: 1 year ago Active since 2020

I am Application Support Engineer at Mathworks.
Disclaimer: Any articles/ideas/opinions here are my own and in no way reflect that of Mathworks.

#### Content Feed

View by

Should Behavior of sub2ind() be Different for Symbolic and Numeric Inputs?
Hi Paul, The development team is working on resolving this issue. A task has been created for our development team about the bu...

1 year ago | 0

| accepted

Reading text and data from excel
Hi Austin, You can try using the following tool: Import Tool This can produce outputs as tables rather than a rigid numeric /...

1 year ago | 0

BVP4C Unable to solve the collocation equations -- a singular Jacobian encountered
Hi Luke, A singular Jacobian indicates that the initial guess causes the solution to diverge. The BVP4C function finds the solu...

1 year ago | 0

For loop to plot mutiple x and y arrays on the same plot
Hi Brandon, From my understanding, you are first trying to plot two specific variables against each other and then two differen...

1 year ago | 0

Stochastic delay differantial equations
Hi Miray, The error is occurring in the line where you are using the plot function. This is because the values you have given t...

1 year ago | 0

Find the meaning of each line of code
Hi Surendra, As KSSV mentioned, do read the documentation of each function used in the code. It will be self-explanatory. I am...

1 year ago | 0

how can i plot R2(regression line) between target and prediction
Hi, Firstly, as R2 is a scalar, it cannot be plotted. To plot the regression line, follow the example shown in the link below:...

1 year ago | 0

Start state is not valid based on planner's state validator
Hi Kashish, From the figure, I can see that your map's x-bounds are [-40 40] and y-bounds are [-25 25]. The coordinates of you...

1 year ago | 0

Calculating duration in large dataset based on conditions
Hi Matt, As far as I understand, the code given by Salah will help you solve your issue. I can try to explain it more clearly w...

1 year ago | 0

| accepted

bvp4c's guess for boundary conditions
Hi Bobby, In the case mentioned above, the first element of yinit corresponds to z1 (which is the entire solution y) and not y(...

1 year ago | 0

| accepted

How do I plot a 3D grid from a 3D matrix?
Hi Uday, You can create an empty 3D Occupancy map using the occupancyMap3D function. Then, you can use the setOccupancy objec...

1 year ago | 0

How to plot a specific data range in a xlsx-file
Hi Hendrik, The input array to the function 'fft' can be either a vector or a matrix. Firstly, you can create a table using the...

1 year ago | 1

| accepted

int of symbolic function not returning the integral
Hi Liam, The "int" function cannot solve all integrals since symbolic integration is such a complicated task. It is also possib...

1 year ago | 0

| accepted

Need help using contourfm in Map plotting
Hi Leon, The syntax for using the 'contourfm' function is different from that of the 'contourf' function. This is why you are g...

1 year ago | 0

Hi Lucrezia, The following syntax will read data for LP and MILP problems from the MPS file 'file.mps' and return the data in a...

1 year ago | 0

How can I correct this error?
Hi Kangmin, Have a look at the following snapshot of your code: The matrix above the blue line and the matrix above the red ...

1 year ago | 0

How to solve the Error: Warning: Failure at t=6.081492e-07. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (2.160580e-21) at time t. > In ode23s (line 401)
Hi Drishya, This error can occur due to several reasons: Your function might be creating a singularity or any other discontinu...

1 year ago | 0

how to plot the functions
Hi Harsh, One way of plotting the functions is by using the "isosurface" function. Have a look at the following example code: ...

1 year ago | 0

Define function for a transfer function
Hi Vinit, From my understanding, 'X' is a vector containing 'a', 'b', 'c', 'd' which are scalars. As these are scalars, you do ...

1 year ago | 0

Getting this error - Index exceeds the number of array elements (0). quant(keymat(Nm*(ii-1)+jj))=bitset(quant(keymat(Nm*(ii-1)+jj)),1,str2double(tempcipher(ii,jj))); for DCT steganography
Hi Talha, As I do not have the images you have used, I am unable to run your code. But I can tell you the meaning of the error....

1 year ago | 0

Solving a system of ODE with BCs
Hi Elia, The following link gives an example of how to solve a system of two first-order differential equations with boundary c...

1 year ago | 0

| accepted

Normalise data set in 2d plot
Hi Tiernan, After you finish plotting, you can specify the limits of y-axis by adding the following line of code: ylim([-1 1])...

1 year ago | 0

Difference between plotting 3D Graphs (Curve vs Area)
Hi Niklas, Firstly, the difference in the two surf plots is because the matrix 'y' is different in both the cases. To understa...

1 year ago | 1

| accepted

Product of one-dimensional integrals, numerical integration
Hi Dimitris, Have a look at the following example code. I have assumed different functions for 'f' and 'g' and integrated their...

1 year ago | 0

| accepted

First Order solving ODE and simulink
Hi Hassan, Firstly, as you are defining all the variables inside the function, you do not need to pass them as the function's a...

1 year ago | 0

| accepted

Symbolic Linear system returns wrong solution.
Hi Tiago, I understand that you are getting wrong solutions but there is nothing wrong with the working of the code. I suggest ...

1 year ago | 0

| accepted

Symbolic integration, numerical integration, singularity
Hi Pengpeng, The "int" function cannot solve all integrals since symbolic integration is such a complicated task. It is also po...

1 year ago | 0

Push Button help!
Hi Priyana, There is a slight change in syntax that you need to make for the ButtonPushedFcn. Assuming that when Button 1 is p...

1 year ago | 0