Answered
histogram code from Matlab
You cannot see the code for compiled functions. So you cannot get the code for the tools you indicate. However nothing stops ...

10 years ago | 0

Answered
How can I calculate Euclidean distance from a point to a line in 2D?
Um, use google? https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line And if you have no clue as to how to find a ...

10 years ago | 0

Answered
Is the trial software for matlab enough to know about it?
It very much depends on what you want, what you are willing to invest in the effort. Are you asking if using MATLAB briefly f...

10 years ago | 1

Answered
Equation behind solution by using function roots
For a cubic, you can use the symbolic toolbox, and it will give you an analytical solution. Here is an easy way to get what you ...

10 years ago | 2

| accepted

Answered
After using this sequence of statements several times, why am I getting an error message?
READ THE ERROR MESSAGE! God gave us error messages so that we could read them. Ok, Cleve did. Same thing wrt MATLAB. Some lin...

10 years ago | 0

Answered
the inverse of a symbolic matrix using inv is not correct
Oh. So this is not an identity matrix? simplify(sigmaok*sigmainverse) ans = [ 1, 0] [ 0, 1] That darn new math....

10 years ago | 0

Answered
eig is not giving a matrix for left eigenvectors
It works well enough for me, doing exactly as I would expect on a random matrix. clear [V,D,W] = eig(rand(16)); whos ...

10 years ago | 0

Answered
Any help hot I can plot this. It keeps running
Well, since we are not privy to your code DarcyFricFact, how do you expect an intelligent answer? Is that code efficient? Is ...

10 years ago | 0

| accepted

Answered
Error with inpaint_nans
Other tools often use the function unique. In this case, inpaint_nans does exactly that. So why are you surprised? The functions...

10 years ago | 1

| accepted

Answered
Solve cannot find solutions where plotting shows they exist
No. Solve could not find an ANALYTICAL solution. The expression you have has no such solution. That a numerical solver could not...

10 years ago | 0

| accepted

Answered
How can I obtain two unknown with one equation through optimization?
You do not have ONE equation. You have a set of points, and an equation that relates them, for some unknown set of parameters, A...

10 years ago | 0

Answered
Minimizing a function using the BFGS method
You cannot do so using BFGS either. However, you COULD use FMINCON to do so. And if you have fminunc, then you have fmincon. ...

10 years ago | 0

Answered
Matrix with only one 1 on each row and column
The simple answer is to use brute force. For a 4x4, just test each of the possible factorial(n) possible matrices. Take the firs...

10 years ago | 0

Answered
Model running for days
We cannot possibly answer this intelligently. Yes, finding a faster, newer computer, with more memory, more RAM, etc, will help....

10 years ago | 0

Answered
Error using fsolve: FSOLVE requires all values returned by functions to be of data type double.
I'd start by pointing out that your function (leftside) actually takes no arguments. How do you expect fsolve to solve anything?...

10 years ago | 0

Answered
reverse of interpolation.....
As others have said, this problem IS solved using contour. The followup question seems to have been, HOW does contour do it? Tha...

10 years ago | 1

| accepted

Answered
Can you specify multiples to be returned by intlinprog?
So each parameter would be expressed as an integer, 0:1:pmax. In your objective, if p indicated the amount of nuclear power, ...

10 years ago | 0

| accepted

Answered
How to extrapolate a plot?
Extrapolating this curve using anything other than a linear model is a foolish task. Even with a linear model, you are asking fo...

10 years ago | 1

Answered
hello sir i have three different graph from three different code i want to get one performance graph ho i will do that ?
Use hold on to allow you to plot a second curve on the same plot.

10 years ago | 0

| accepted

Answered
How to Vectorize Dependent For-Loops
Why do you feel the need to "vectorize"this? Is the function bin_pdf vectorized? I can't tell, since you don't show us that code...

10 years ago | 0

Answered
I want to find coefficients of a equation that gives the relationship between two data sets.
Use the curve fitting toolbox. Or lacking that, use the optimization toolbox, so lsqnonlin or lsqcurvefit. Or use nlinfit from t...

10 years ago | 0

| accepted

Answered
Logaritmic scale in x-axis
Just use the numbers 1:5 to plot as the x values in your plot. Then change the axis tick mark labeling to indicate those values....

10 years ago | 0

| accepted

Answered
Can I get optimised equations from several equations ?
Yes. I suppose you can. Do you want a more informative answer? Then you need to give more information.

10 years ago | 0

| accepted

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

10 years ago

Solved


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

10 years ago

Answered
Implementing matrix multiplication constraints in fmincon
You DO have 160 unknowns from what you have said. The 5 concentrations, at each of 32 positions. It is just that you are thinkin...

10 years ago | 1

| accepted

Answered
Matrix version of quadprog?
This problem is not a form that quadprog can solve. You can write it in a more computationally efficient way though as an object...

10 years ago | 0

Answered
How to Account for Numerical Integration Error?
In order to compute the error of a numerical integration as an approximation, you would need to know the true function, and the ...

10 years ago | 0

Answered
Surface fitting with constraints
Ugh. This could become a long mess of a discussion. I'm not even sure why I am entering into it. :) This is a BAD problem to...

10 years ago | 1

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

10 years ago

Load more