Community Profile

photo

Mohit Kumar


Last seen: 12 días ago
24 total contributions since 2019

Mohit Kumar's Badges

  • First Answer
  • Revival Level 1
  • Thankful Level 2
  • Solver

View details...

Contributions in
View by

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

30 días ago | 0

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

30 días 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...

alrededor de 1 mes ago | 1 answer | 0

1

answer

Question


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

alrededor de 1 mes ago | 1 answer | 0

1

answer

Question


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

alrededor de 2 meses ago | 1 answer | 0

1

answer

Question


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

3 meses ago | 1 answer | 0

1

answer

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

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

3 meses ago | 1 answer | 0

1

answer

Question


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?

4 meses ago | 0 answers | 0

0

answers

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

4 meses ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

4 meses ago

Solved


Return area of square
Side of square=input=a Area=output=b

4 meses ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

4 meses ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

4 meses ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

4 meses ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

4 meses ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

4 meses ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

4 meses ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

4 meses ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

4 meses ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

4 meses ago

Question


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

5 meses ago | 1 answer | 0

1

answer

Question


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

9 meses ago | 1 answer | 0

1

answer

Question


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

9 meses ago | 0 answers | 0

0

answers