Answered
How to solve this kind of differential equations ?
I don't do consulting via e-mail. I also explicitly ask people not to contact me directly (as you did), as that will just get th...

8 years ago | 0

Answered
Is there a way to see if my code (written in 2018b) will work in another, older version of Matlab, like 2015b?
I'd suggest the simple way is to install the older release. You can have an older release active on your computer. So then you c...

8 years ago | 2

Answered
Sorting numbers in the list without using sort command
Just use sort. ;-) Yeah, I know, it is homework. Not allowed. But you did make a credible effort, and you were close. You have ...

8 years ago | 2

Answered
gauss elimination or inverse
People have said repeatedly that you want to use polyfit. This is the correct answer, IF you need to fit a polynomial. At the s...

8 years ago | 4

| accepted

Answered
How to fit a line through this data "smartly" ?
A serious problem is your data also starts with a strongly nonlinear portion. You essentially need to trim it at both ends. I...

8 years ago | 1

Answered
How can i create array of 1:2^1000 column size?
Let us be serious. How much memory would you need to store that array? How big is 2^1000? Don't forget to multiply the result by...

8 years ago | 3

Answered
matlab wont work on my mac OS x
Of course it won't run. :) You are trying to install the Windows version of MATLAB. There is a Mac OS X specific version that yo...

8 years ago | 0

Answered
find roots of determinant
Sadly, too many people misunderstand DET. They think that just because one of the properties of the determinant is thatit is mat...

8 years ago | 1

Answered
Finding k* which satisfies the equation
It is a really bad idea to want to call a variable k*, since * represents multiplication in MATLAB. gamma is also a poorchoice o...

8 years ago | 0

| accepted

Answered
Generate random sample of points distributed on the n-dimensional sphere of radius R and centred at the origin
What is a "complex random n-dimensional vector"? Does this imply you want to see complex numbers? If so, then what does that mea...

8 years ago | 2

| accepted

Answered
How to plot a function of two variables in MATLAB?
People seem not to recognize this. Not sure why, but it seems a common misperception. A level set is the set of all points where...

8 years ago | 9

| accepted

Answered
strange solution -Newton Raphson
It always makes sense to test your function. Does it make sense? Your starting value is 2400. F1=@(x) 2400 + (1- (sqrt(pi)*er...

8 years ago | 0

Answered
How does MATLAB find Fibonacci for large n extremely fast (27 msecs for 1 millionth)
No. That is not an approximation. It is exact. There are a few ways to compute huge fibonacci numbers. I go into some detail in ...

8 years ago | 1

| accepted

Answered
inverse of mod function
Not that difficult to do. I implemented it in the form of minv.m, in my VPI toolbox. help minv help minv vpi/minv: the ...

8 years ago | 0

Answered
cftool custom equation doesn't work ?
I think I get the issue. I think it is why does 'sin8' work better than does a custom equation fit? The issue with a custom equa...

8 years ago | 2

| accepted

Answered
Unexpected behavior (to me) with quadprog constraintTolerance.
You say you are using quadprog with fmincon. But in fact, you are apparently not using quadprog then, but fmincon. I suppose you...

8 years ago | 1

Answered
Can we check points are in straight line
The others have offered various solutions that CAN work, but they have flaws. In fact, many solutions can be caused to fail if y...

8 years ago | 6

Answered
How I can create a three dimensional succession
As simple as one line like this: freq = reshape((5:0.5:15)*1e9,1,1,[]); As you can see, it has the desired shape. size(freq) ...

8 years ago | 1

Answered
Can I solve a special system of implicit functions by using the command "fsolve"
I think Walter misread things, or perhaps did not notice something important.. While the -.5 is a square root indication, the pr...

8 years ago | 0

Answered
How to do SVD without specific function svd()?
So, is this homework? (The most common reason for disallowing built-in code.) If so, I won't help you. Regardless, the simple a...

8 years ago | 3

Answered
Area under gaussian curve between two known points?
You use normcdf. Found in the stats toolbox. diff(normcdf([-2.5 2.5])) ans = 0.987580669348448 If you lack that too...

8 years ago | 0

| accepted

Answered
how to solve the 12 equations in an effective way
Without trying to read every one of those equations, are they not just 12 linear equations in 12 unknowns? I can't find anything...

8 years ago | 0

Answered
Can somebody explain me this code for interpolation with cubic spline?
In theory, I probably could, with some amount of effort. Reading moderately poorly written code that lacks useful comments can b...

8 years ago | 1

| accepted

Answered
How to find curvature(k) of plane curve have having using it's position points (x & y) equally spaced with arc length s.
Why does it seem you are trying to do this the hard way? Seriously, you are working WAY too hard on this. plot(x,y,'o-'),grid o...

8 years ago | 2

Answered
What is the difference between the command exit and quit?
If you want to leave MATLAB, quitting the application, then exit and quit both do so. They are effectively synonyms. Probably cr...

8 years ago | 0

| accepted

Answered
Factorizing a matrix with 1's along diagonal
Sorry, but NO. That would NEVER be possible. Absolutely mathematically completely impossible. (note that I am responding to the ...

8 years ago | 1

| accepted

Answered
Manually determining the gradient of a surface
Your attempt as you posted it is not actually that far off. First, we need to know what the spacing is between elements, and in...

8 years ago | 1

| accepted

Answered
solving systems of linear equations
But what you did was not a correct solution to the linear system of equations. The solution to the linear system of equations i...

8 years ago | 0

Answered
Solving 2 equations and 2 unknowns
You got a solution. So what is the problem? theta1 theta1 = -27.304419783125266662080772270734 theta2 theta2 = 99.603101...

8 years ago | 0

Answered
Need help to code the power Low fit using least square regression
Frustrating. You mention a constrained least squares in your question. But no place did you EVER suggest what the constraint was...

8 years ago | 2

| accepted

Load more