# Mohit Kumar

Followers: 0 Following: 0

**Statistics**

RANK**21.229**

of 295.211

REPUTATION**2**

CONTRIBUTIONS

**19** Questions

**4** Answers

ANSWER ACCEPTANCE **
68.42%
**

VOTES RECEIVED**1**

RANK**2.250** of 20.193

REPUTATION**774**

AVERAGE RATING**5.00**

CONTRIBUTIONS**1** File

DOWNLOADS **187**

ALL TIME DOWNLOADS**6428**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

Question

How to create a 3D matrix from subtracting 2D matrices (like creating 2D matrix from subtracting vectors)?

Hi, I wish to extend the behavior of subtracting a row vector and a column vector to matrices. Let me provide an example: Suppo...

bijna 3 jaar ago | 1 answer | 0

### 1

answerHow to construct this matrix without using two for loops?

I was able to figure out the answer to this. The formulation can be written as A = V' * X * V;

meer dan 3 jaar ago | 1

Question

How to construct this matrix without using two for loops?

Hi, I'm trying to construct a matrix in the following manner: sz=10; V=rand(sz,sz); X=rand(sz,sz); for iter1=1:sz for ...

meer dan 3 jaar ago | 1 answer | 0

### 1

answerQuestion

xlim is not working with the limitmethod option, and how to change its default behaviour?

Hi, I am trying to run xlim('tight') but this gives me an error. According to the documentation it should work. The error is: ...

meer dan 3 jaar ago | 1 answer | 0

### 1

answerQuestion

How to solve a boundary value problem for a piecewise linear differential equation?

I have two a set of two second order differential equations to which I want to find a periodic solution. The differential equati...

ongeveer 4 jaar ago | 0 answers | 0

### 0

answersQuestion

How to check if a user entered input will form a valid function handle?

The user enters a character vector (in the edit text field of Appdesigner). I want to convert it into a function handle. I am do...

ongeveer 4 jaar ago | 1 answer | 0

### 1

answerQuestion

How to get mouse coordinates in GUI (AppDesigner) ?

I am using MATLAB App Designer and have inserted axes into the app. When the user clicks a button, I want them to be able to t...

ongeveer 4 jaar ago | 1 answer | 0

### 1

answerQuestion

Why is fimplicit not plotting x^2 = 0 ??

I have a code that takes in an implicit function from the user and then plots it. However, I ran into this odd problem where fim...

ongeveer 4 jaar ago | 2 answers | 0

### 2

answersQuestion

How to find all solutions to a system of two nonlinear equations?

I have a system of two nonlinear equations (f(x,y)=0 and g(x,y)=0) to which I want to find all roots over a region (say x from -...

ongeveer 4 jaar ago | 2 answers | 0

### 2

answersQuestion

How to plot a vector field with coloured arrows?

I'm trying to create a vector field where the colour of the vector represents its magnitude like the one shown in the picture. A...

ongeveer 4 jaar ago | 1 answer | 0

### 1

answerQuestion

How to display Live Editor output in multiple lines?

I have large equations in the output of my code that I want to view. However, in the Live Editor output window it only allows me...

ongeveer 4 jaar ago | 1 answer | 0

### 1

answerhow to use a excel colum as an input to a function

Hi Giovanna, To change your function so that it works with matrices, all you have to do is replace your multiplication and divi...

meer dan 4 jaar ago | 0

How to solve such a system of nonlinear equations?

Hi, I think this might be a better approach to your problem : img=zeros(320,320); % create a 320x320 zeros matrix to represen...

meer dan 4 jaar ago | 0

Question

How to ensure that dsolve provides a trigonometric solution to a second order differential equation?

Hi, I'm trying to solve the following linear second order equation with dsolve in the symbolic workflow. When I solve it I g...

meer dan 4 jaar ago | 1 answer | 0

### 1

answerQuestion

How to numerically solve a differential equation with a dirac delta function ?

The differential equation that I want to solve is Upon using ode45 and the dirac function, the dirac function doesn't seem t...

meer dan 4 jaar ago | 1 answer | 0

### 1

answerQuestion

Symbolic toolbox not simplifying adequately

I'm using MATLAB Live Editor along with the symbolic toolbox. The following expression is not getting simplified. Any fixes? ...

meer dan 4 jaar ago | 1 answer | 0

### 1

answerQuestion

How to (cleverly) index points in a plot?

I have a for loop which plots a point each iteration. In total there are about 4000+ points to be plotted. From the figure, I w...

meer dan 4 jaar ago | 1 answer | 0

### 1

answerIssue with fsolve tolerance

Turns out function tolerance is compared with norm(fval)^2and the default tolerance was 1e-3. Simply changed it to 1e-10 (in acc...

meer dan 4 jaar ago | 0

| accepted

Question

Issue with fsolve tolerance

I am using fsolve to solve an overdetermined system of equations using the levenberg marquadt algorithm. It works fine although...

meer dan 4 jaar ago | 1 answer | 0

### 1

answerQuestion

How to repeat a column several times?

Consider this scenario - a =[1;2.3;3.2;4.5;5.7]; b=[a,a,a,a,a]; Is there a better way to do this?

meer dan 4 jaar ago | 0 answers | 0

### 0

answersQuestion

ODE45 not solving Duffing Oscillator with negative nonlinear coefficient

Hi, I'm trying to solve the duffing oscillator with a negative nonlinear coefficient (named b, see below). When I do so, ode45 ...

meer dan 4 jaar ago | 1 answer | 0

### 1

answerQuestion

What is the s_rot() function ?

I came across this code in a textbook (Multibody Dynamics, Nikravesh P.E.) - % Example 2.3 % Define vectors a and b a = ...

bijna 5 jaar ago | 1 answer | 0

### 1

answerQuestion

How to minimise a value which is found by solving transcedental equations (using fsolve)?

I want to minimise the coefficient of variation of the y coordinate of the rocker chassis joint of the rocker bogie suspension s...

ongeveer 5 jaar ago | 0 answers | 0