Answered
Solving systems of equations symbolically
You say that you understand solve. But no, apparently you don't understand how solve works. syms x y [x y] = solve(3*x-y...

10 years ago | 0

Answered
Finding multiple roots of a polynomial
You could make it easier if you bothered to tell us that you lack the symbolic toolbox. You could make it even easier if you jus...

10 years ago | 1

Answered
Multiple Linear regression to obtain coefficients
Assuming that data is actually y in the model posed... [xx,zz] = ndgrid(x,z); abc = [ones(24,1),xx(:),zz(:)]\data(:) ...

10 years ago | 0

| accepted

Answered
Modified Bessel function second kind
1. Are you sure this generates something meaningful for negative r? Those bessel functions return complex results for negative r...

10 years ago | 0

Answered
Finding the location of positive entries in a matrix
I should not do your homework. But I wonder if you actually need something with loops. If so, start writing. [i,j] = find(A...

10 years ago | 0

Answered
Hi, I want to solve 12 equation in 12 unknown but is nonlinear equation for robotic arm ((??? Error using ==> solve>getEqns at 173 ))
That it is nonlinear is not pertinent. Although solve will surely fail to produce a result. Try vpasolve. The reason for your...

10 years ago | 0

Answered
Interpolation of 3D point data
You can use my <http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc interparc> tool, as found on the file exchan...

10 years ago | 7

| accepted

Answered
How do you write a MATLAB code that returns the indices of the elements that will sum to exactly half of the sum of all elements?
Of course, you can use intlinprog to solve it. Just force each variable to be a binary variable. a = [ 1 2 3 4 5 6 7]; O...

10 years ago | 0

Answered
Accurate numerical differentiation for large time series data!
I am surely one of the people who answered at least some of the questions you have found, but I'm not sure what is your problem....

10 years ago | 1

| accepted

Answered
Problem with fsolve: system of 6 nonlinear equations and more
It just might be there are no solutions. Not every problem has a real solution. I set up your problem as a symbolic one. re...

10 years ago | 0

Answered
Approximate solutions for variables in matrix
If I read you properly, you are trying to solve the problem X(s,y) = data where data is a 4x4 matrix, and X is also a 4...

10 years ago | 0

Answered
How to perform quadratic optimization
I'll assume that you have the optimization toolbox. If you don't, you could still do this, but I'm not going to teach you how to...

10 years ago | 2

| accepted

Answered
flow rate in tubing
1. Why did you feel it was adequate to stop at exactly 3 terms in that infinite series? Note the little ... in that sum? It goes...

10 years ago | 0

Submitted


polyfitn
Polynomial modeling in 1 or n dimensions

10 years ago | 39184 downloads |

4.8 / 5

Answered
How to use polyfitn functions, I am quite unclear with usage ?
You provide the input pretty much the same way as for two variables. Assuming these vectors are column vectors, then: mdl =...

10 years ago | 3

| accepted

Answered
How many spaces do you indent?
2 space indents for me. I think they charge extra for more spaces. And it takes so much more work for the computer to wade throu...

10 years ago | 0

Answered
Error: Subscript indices must either be real positive integers or logicals. Please help me. My code
Hint: Never define a variable named exp. If you do, you will get that error. Try this: which exp -all If that is not ...

10 years ago | 0

| accepted

Submitted


Optimization Tips and Tricks
Tips and tricks for use of the optimization toolbox, linear and nonlinear regression.

10 years ago | 44516 downloads |

4.8 / 5

Answered
How can I calculate a zero of equation with besselh?
Look at what you have typed: f=@x (besselh(-1,2,x)0.5*a-besselh(1,2,x))-besselh(1,1,x)*b; First of all, this is not how...

10 years ago | 1

Answered
how to represents a function at three variables from data collected on the field?
Congratulations! You are the 1 millionth person to ask this same question. Only kidding. It just seems like a million. Your p...

10 years ago | 1

Answered
how can i install a matlab toolbox?
You cannot do so. I.e., you cannot use a newer toolbox for an old MATLAB release. Even if you want only one function from that n...

10 years ago | 1

Answered
How can I use Monte Carlo method?
Did you look in the stats toolbox? Why not? This is where you will find MANY distributions for random sampling. I'd guess that m...

10 years ago | 0

Answered
I have heard that publishing your code to Mathworks is equivalent to publishing your article?
No. It simply is not equivalent. Whoever told you that is wrong. Posting your code on the file exchange is NOT equivalent to wri...

10 years ago | 1

| accepted

Answered
how do i find the extremes of an always decreasing curve?
This will be a fairly difficult problem to solve in a stable way. You are trying to fit a curve to pretty noisy data. There are ...

10 years ago | 0

Answered
Integral/Calc issues: normalizing wave function
You need to understand functions and function handles, and the difference between symbolic tools and numerical tools. integra...

10 years ago | 0

| accepted

Answered
Polyval/Polyfit input values
Sorry, but this is a common problem that people have, who are just learning to use MATLAB. That is, as a novice, one tends not t...

10 years ago | 0

| accepted

Answered
K-means clustering
Since k-means uses a random start, the clusters have no particular order they come out in. Therefore, you need to identify which...

10 years ago | 0

| accepted

Answered
how to generate a 20 random matrix and according to equation ?
DON'T. Don't do this. Instead, learn to use 3-dimensional arrays. Just generate a 3x3x20 array, then work with the planes of ...

10 years ago | 0

Answered
I want to plot the hyperplane for multiclass SVM having features of 11 dimensions.How to do that?Else how to visualize data more than three dimensions?
Sorry. You cannot plot an 11 dimensional hyperplane. You cannot plot in 11 dimensions, certainly not and visualize what you have...

10 years ago | 1

| accepted

Answered
exp(log(x))-x?
You cannot "fix" it, not as long as you work with numbers represented in floating point arithmetic. Floating point arithmetic is...

10 years ago | 0

Load more