Answered
Minimize function with L-BFGS-B algorithm
Team? What team? Ain't no team here. Perhaps you misunderstand what Answers is, as an open forum visited by volunteers. The bou...

7 years ago | 0

Answered
Sum does'nt work for large q.N
The factorial function is rarely a good idea to use heavily. Large factorials tend to exceed the limits of double precision. Yo...

7 years ago | 0

| accepted

Answered
How do you get ten random values between -pi/2 and pi/2
Read the help for rand. (Why not do this?) In there, you will find an explicit example of exactly how to do this. help rand d...

7 years ago | 0

Answered
Can we sum a series of values,even some of them are "Inf"?If i want to do it,how can i do?
No. You cannot add numbers if some of them are infs, at least not without getting an inf as a result. OR you might even get a Na...

7 years ago | 0

| accepted

Answered
Does predict function work in parallel when predicting k-nearest neighbour?
Perhaps you are mistaken. Most high level tools in MATLAB do not directly, intentionally use parallel processing, splitting the ...

7 years ago | 0

| accepted

Answered
what's the difference in accuracy between solving a stiff problem by ode15s and ode45?
Actually, in many cases, sufficiently stiff problems see a solver like ODE45 grind to a complete halt, unable to pass a point wh...

7 years ago | 0

| accepted

Answered
Problem using boundary and trisurf functions to create a mesh with three points
You have THREE points, in a 3 dimensional space. How many points determine a volume in 3-d? 4. Essentially, a tetrahedron in 3 ...

7 years ago | 0

| accepted

Answered
Why is det(x) better than rcond(x) in determining non-singularity here?
Let me suggest that you misunderstand det, and why it is a terribly poor tool to use to learn if a matrix is singular or not. Ye...

7 years ago | 3

| accepted

Answered
Create Matrix with zeros, ones and some numbers.
Far fewer numbers required... dec2base(hex2dec({'1','1','1E23B','6069','D508F'}),10) - '0' ans = 0 0 0 0 ...

7 years ago | 1

Answered
SVD issue calculating null basis
The problem is that while the last element of s is small, it is not technically zero. s s = 3.17982071419273 ...

7 years ago | 1

| accepted

Answered
I need matlab code for cot(x) Taylor Polynomial Function
I think what you do not understand is how to build that series expansion. A Taylor polynomial would be of the form: P(x) = ...

7 years ago | 0

| accepted

Answered
I want to mesh a square element with a circular hole in the middle
Use polar coordinates. Surely you know the equation of a circle in polar coordinates. r = r0 What is the equation of a unit ...

7 years ago | 1

Answered
Symbolic solution of Transcendental equation
Sorry. Not every equation you might choose to write down on paper has an analytical solution. Some forms arise sufficiently ofte...

7 years ago | 1

Answered
Undefined funcion 'bspline_f'
which bspline_f 'bspline_f' not found. It does not appear that bspline_f is a part of MATLAB. That is, it is apparently not su...

7 years ago | 0

Answered
How to draw a perpendicular line using a point and slope
You want to "find" it? Or you want to draw it? The midpoint of the line segment is at (P1 + P2)/2 ans = 379.5 ...

7 years ago | 0

Answered
How to randomly shuffle neighbouring elements in a matrix ?
You can't easily talk about the probability of two specific elements being exchanged, because things are not independent. For ex...

7 years ago | 0

| accepted

Answered
Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
This is not an error. It is a failure of your code to work as it is supposed to work by your goals. What did I say? What has EV...

7 years ago | 6

| accepted

Answered
How do I plot a certain interval?
I'm confused. That you are not using x-values does not seem relevant. You plotted Mc on the horizontal axis. Next, the line: f...

7 years ago | 0

Answered
Create an accurate boundary around 2D point cloud horizontal plane
As I thought about your problem, there is a simple solution. This is a TSP - a Traveling Salesman Problem. You want a closed sol...

7 years ago | 0

Answered
How to draw a cylinder that has an irregular cross section and changing along the cylinder length?
You essentially have radius, as a function of theta, and z. And I don't have your data, since all you gave us is a picture. It i...

7 years ago | 1

| accepted

Answered
Just how random are random numbers in MATLAB?
The random number generation scheme in MATLAB is fairly sophisticated, having evolved greatly over the years. It is currently us...

7 years ago | 0

Answered
Is it possible to constrain the unknown x in an optimization problem to be rounded up to 1 when it originally is a value between 0 and 1?
You are trying to use a tool not designed to solve that class of problem. You cannot round the results AFTER fmincon returns a r...

7 years ago | 0

| accepted

Answered
Finding extreme points in the convex hull
Why not do the obvious? xy = rand(1000,2); >> ch = convhull(xy) ch = 55 460 890 204 908 222 189 ...

7 years ago | 3

| accepted

Answered
How to plot the exterior edges only of an alphaShape
When you have a problem like this, learn how to investigate what you can do with the class. x = rand(10,1)*5; y = rand(10,1)*5...

7 years ago | 1

Answered
Looping a matrix to find determinant
An ambiguous question, and possibly, an ambitious question too. For example, do you feel it to be of importance to test the subm...

7 years ago | 0

Answered
is it possible to create a Character array using a vertical vector of characters?
Sadly, answers A, B, and C are all virtual drivel, as is the entire question. The difference between options B and C is silly. A...

7 years ago | 3

| accepted

Answered
Can I analytically solve a logarithmic equation using the symbolic toolbox?
Sigh. Sorry. I typed too fast there, and I answered incorrectly. Not sure why solve does not get this. Multiply by log(u) + 1. ...

7 years ago | 0

| accepted

Answered
Writing a one line programme to show that an equation equals to the answer shown.
Homework, but you did make an effort. Does this not show what you need to show? sqrt(4) ans = 2 Or this? sqrt(4) == 2 ...

7 years ago | 0

Answered
Euler-Bernoulli's beam ODE or PDE
Euler-Bernoulli https://en.wikipedia.org/wiki/Euler–Bernoulli_beam_theory might appear in several aspects. It kind of depends...

7 years ago | 1

Answered
Exiting: the problem is unbounded.
THERE IS NO SOLUTION, BECAUSE THE PROBLEM HAS NO SOLUTION. Changing the solver will not make it now a viable problem. This was e...

7 years ago | 0

Load more