Answered
How can i get the mean of the function using symbolic maths in MATLAB
Note that if P(x) is a PDF on the domain [0,inf], then the expected value of the corresponding random variable is gotten from ...

9 years ago | 0

Answered
How to do majority voting in matlab
What directory did you put it in? NEVER put m-files under the MATLAB root directories. Your m-files won't be seen, at least not ...

9 years ago | 0

Answered
How can i participate in mathlab programming contest? Is any contest available?
You could start with Cody, although that may teach you bad programming habits if you are not careful. (Sorry Ned, but it can do ...

9 years ago | 2

| accepted

Answered
Warning: Matrix is singular, close to singular or badly scaled: Help with finding error in code
One hint: If you knowhow to use backslash, then why are you using it as %solve for dY dY = (Z'*Z)\(Z'*D); ...

9 years ago | 0

Answered
Optimization Function for Costs (fminbnd)
READ THE ERROR MESSAGE! fminbnd expects scalar input, and the function MUST return scalar output. numel(f(1)) ans = ...

9 years ago | 0

Answered
If I want to solve for the upper bound in the parametric or cartesian arclength equation using matlab, how would I do it?
Assuming that you are asking to solve for the upper bound that yields a desired arclength... 1. You write down the definite i...

9 years ago | 0

Answered
Can students have the discount about MATLAB exam
Answers is not the place for this question, since we cannot provide an official answer. Even if I said that you can have what yo...

9 years ago | 0

Answered
Speed comparison of two functions using tic/toc
What "deeper" comparison do you think is possible? You already know about the existence of tic and toc, although in many cases, ...

9 years ago | 1

| accepted

Answered
Having trouble with Taylor Series summation
Why do you think you were told to compute 250 terms? What is a20? By the way, it is a REALLY bad idea to use numbered variabl...

9 years ago | 0

Answered
how to fit exponantial function matlab ?
In theory, this is a problem solvable using the curvefitting toolbox, or lsqnonlin (optimization TB), lsqcurvefit(optimization T...

9 years ago | 0

Answered
How to solve coupled first order ODE using something other than ODE45?
What is the problem? If you understand how to solve an ODE using Euler's method, all you need to do is use the current value of ...

9 years ago | 0

Answered
How to find the expression for theta1?
Nope. Wanting magic to happen is not sufficient. I am quite confident that there is no way to untangle the implicit function you...

9 years ago | 0

Answered
Hi All, can someone please help me with this...
A = [ 1 1 1 1 1 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 ]; ind = findstr(A,[0 0]) ind = 9 10 11 17 18 1...

9 years ago | 1

| accepted

Answered
New version of Matlab (2017a)
MATLAB does NOT erase your old code. In fact, you can have multiple releases of MATLAB on one computer. Of course, if you are...

9 years ago | 0

| accepted

Answered
Median of n*n
median(A(:)) When you are working in MATLAB, get used to the idea that you can reshape a matrix to perform some operation.

9 years ago | 0

| accepted

Answered
Why is the pchip/cubic interpolation error the same as linear interpolation?
Because you need to understand how pchip works. As well, you chose a poor metric to evaluate the error, at least for this specif...

9 years ago | 3

Answered
What is the difference between these two commands?
Ok. You did follow up with a valid question. "Why use one form or the other?" Because they do different things! linspace...

9 years ago | 0

Answered
Is there a command-line way of setting MaxIterations in fminsearch/fminsearchbnd ?
Read the help! X = fminsearch(FUN,X0,OPTIONS) minimizes with the default optimization parameters replaced by values i...

9 years ago | 1

| accepted

Answered
How do I estimate a position from N known APs?
This is a classic <https://en.wikipedia.org/wiki/Trilateration trilateration> problem. Some call it multilateration. Read <ht...

9 years ago | 0

| accepted

Answered
determine the coefficients of a polynomial
This is not in fact a true <https://en.wikipedia.org/wiki/Polynomial polynomial>, although some like to extend that family of fu...

9 years ago | 0

Answered
RMSE - Different when calculated "by hand" compared to non-linear fitting.
It has been a while since I looked at this, although I recall answering the same question before on Answers, perhaps more than o...

9 years ago | 0

| accepted

Answered
Correlation of two signals - nonsense result
Since you have not provided the vectors themselves, we cannot prove you to be wrong. In fact though, I could easily believe that...

9 years ago | 1

| accepted

Answered
3D visualisation of measurement points
help isosurface. Think contour in 3-d. It generates a 2-manifold, a surface where your objective hits the given threshold.

9 years ago | 0

| accepted

Answered
I need help with a mathematical model
I'll look back at this later when I have more time. BUT ... I think Stephen and Star are correct in their assessment. There i...

9 years ago | 0

Answered
How to build a program that accepts an arbitrary amount of inputs and returns all missing inputs.
I'd just use a struct as input. S.Arg1 = 1; S.Arg2 = 3; S.Arg4 = pi; Pass in the struct to your function. Have it...

9 years ago | 0

| accepted

Answered
what function for computing all subsets given an array of consecutive number?
S = dec2bin(0:2^12-1) - '0'; The presence of a one in each row will indicate the elements included in the corresponding sub...

9 years ago | 8

Answered
I want to create a n by 1 matrix. The FDF2=2 is on the top row, while BDF2=3 is on the bottom. And the values of the middle row should all equal to 3. How do I input the values in such matrix?
I'm not sure why you would initially create a VECTOR of length n+1, if your final goal is an nx1 vector. :) No. There is no n...

9 years ago | 0

| accepted

Answered
How to apply constraints in the form of summation in fmincon
A summation of WHAT? What kind of constraint? An equality? Inequality? If you want to know how to sum the parameters, then wh...

9 years ago | 1

Answered
Finding inflection points of a noisy signal
Differentiation is a noise amplification process. Why does that matter here? And what do I mean by that claim, anyway? First,...

9 years ago | 2

| accepted

Submitted


SLM - Shape Language Modeling
Least squares spline modeling using shape primitives

9 years ago | 28787 downloads |

5.0 / 5
Thumbnail

Load more