Community Profile

# Divija Aleti

### MathWorks

52 total contributions 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.

View details...

Contributions in
View by

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

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

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

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

2 months 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: ...

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

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

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

2 months 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])...

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

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

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

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

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

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

2 months ago | 0

Resume from latest Randstream
Hi Sebastian, Setting the seed of "rng" to 'shuffle' helps getting different sequence of random numbers after each call to rng,...

2 months ago | 0

| accepted

Solving symbolic equation using vpasolve
Hi Alessandro, The "int" function cannot solve all integrals since symbolic integration is such a complicated task. It is also ...

2 months ago | 0

Plotting Implicit Function in Polar Coordinate
Hi Teerapong, Have a look at the following links: https://www.mathworks.com/help/matlab/ref/cart2pol.html https://www.mathwor...

4 months ago | 0

Changing CData values for a surf plot.
Hi Ali, Have a look at the following link: https://www.mathworks.com/help/matlab/creating_plots/how-surface-plot-data-relates-...

4 months ago | 0

Error in port widths or dimensions using simulink -PS converter block

4 months ago | 0

How to formulate elegantly and performant functions that depend on a lot of input variables
Hi Ferdinand, Have a look at the Accepted Answer (and the comment under it) for the question posed in the following link: Pass...

5 months ago | 0

Hi, Have a look at the following code which solves the above mentioned equations by Newton-Raphson Method : clc;clear;close a...

5 months ago | 0

Hi Nagaraj, You will have to first change your equation to the form of y = f(x) and then use the formulae to find the radius an...

5 months ago | 0

| accepted

Function 'subs' different output for a (similar?) input
Hi Bobby, syms F(t) The above command implies that 'F' is a symbolic function. Hence, the command invF0=subs(invF(t)) does...

5 months ago | 0

| accepted

Hi Ollie, I understand that you want to be able to copy the legends of the figures, along with their plots, into the subplot bu...

5 months ago | 0

how to plot them together and get their equations and make a legend for them ?
Hi Tomer, I understand that you want to plot both the models in one figure and get the equations for both of them. I have bro...

5 months ago | 0

How to Solve Second Order ODE with 2 dependent variables
Hi Yanuar, Two second order ODE's can directly be solved by using 'dsolve'. Have a look at the following code: syms x(t) y(t) ...

5 months ago | 0

Check for missing argument or incorrect argument data type in call to function 'bode'
Hi Alejandro, As both ARK and Adam mentioned, do check out the documentation for 'bode' function to know the valid syntax. As...

5 months ago | 0

Discretization method used in MPC
Hi Hossam, The following link gives information on the discretization method used by a non-linear MPC Controller: Specify Pred...

5 months ago | 0