Answered
usrp2 not found!
Maybe this page will help you: <http://www.mathworks.com/support/solutions/en/data/1-CUN7JZ/?solution=1-CUN7JZ Where can I obtai...

15 years ago | 0

Answered
Finding Spatial Median By Optimization
The problem is just ill-defined for two points because, for |a <= x <= b|, ||x-a|| + ||x-b|| = |x-a+b-x| = |b-a|. What surprises...

15 years ago | 0

Answered
Principal stress values and directions using .eigs
You speak of the eigenvector as if there is only one for your system. Aren't you getting three? Since all your nonzero stresses ...

15 years ago | 0

Answered
Want help in Discretising a cummulative distribution plot.
It sounds like what you are after is a set of quantiles. If you have a set of data for your cdf, you can use <http://www.mathwor...

15 years ago | 0

| accepted

Answered
Fitting Flat-Top Guassian Data
The <http://www.mathworks.com/help/toolbox/stats/br5k833-1.html#br5k833-2 Johnson and Pearson distributions> are generalizations...

15 years ago | 0

Answered
Tangent
You'll need to fit a function to the data and then take its derivative. First, the fit: plot(x,y,'.'); hold on n = 10; [p,~,m...

15 years ago | 1

| accepted

Answered
How should I scratch this ticket?
ceil(datevec(exp(1)))+1

15 years ago | 1

| accepted

Answered
How should I scratch this ticket?
mod('I win!',25) Here is another variant that gets to the point: Scratch_what = mod('itches',25);

15 years ago | 1

Answered
Uniform distribution help need.
Hint: try hist(x)

15 years ago | 0

Answered
Smoothing spline (spaps)
Interesting question. I don't know anything about the algorithm, but the documentation says that the distance being minimized is...

15 years ago | 0

| accepted

Answered
Solve a variable-size array of linear eqns
It would be much faster to express this as a matrix equation, _e.g.,_ M = [1 0 0; -2 1 0; -0.5 3 1]; b = [6; 3; 10]; y = M\b ...

15 years ago | 0

| accepted

Answered
Writing elegant MATLAB code
# To improve on your code, you'll probably need a third-party package like <http://www.mathworks.com/matlabcentral/fileexchange/...

15 years ago | 1

Answered
3D shape visualization
Judging by the figure you have provided, you only need first order spherical harmonics. If so, you might want to consider repres...

15 years ago | 0

Answered
Numerical integration like dblquad allowing a vector input rather than scalar
You can use |quadv| to vectorize computation of a 1D integral. For a double integral, you can nest one |quadv| inside another.

15 years ago | 0

Answered
3D shape visualization
I'm surprised that you are finding spherical harmonics so expensive to evaluate. <http://www.mathworks.com/products/matlab/demos...

15 years ago | 0

Answered
using ode solver or bvp4c for a 4th order two point boundary value problem with time-varying coefficients
The MATLAB solvers don't care whether your ODE's have constant coefficients or not. Just include the functions defining your coe...

15 years ago | 0

| accepted

Answered
solving linear system with highly sparse matrices
In <http://www.mathworks.com/matlabcentral/answers/9107-solving-large-linear-systems this previous post>, a backslash is easily ...

15 years ago | 0

| accepted

Answered
OOP Dynamic Properties ordering is very strange...
According to the documentation, you could add a property using a command like Pa = hObj.addprop('a'); and later delete the p...

15 years ago | 0

Answered
string choppping
token = strtok(str, delimiter)

15 years ago | 0

Answered
Method other than for loop?
Your problem sounds like an optimization problem. Using the <http://www.mathworks.com/products/optimization/ Optimization Toolbo...

15 years ago | 0

Answered
can this code be sped up?
You could replace the double loop by Mat = reshape(z,n,m); *EDIT*: I'll bet most of the time is spent calculating 200 conto...

15 years ago | 0

Answered
Which optimization function and which algorithm do I use?
There are many possible reasons for the failure. I can only make some general comments: # The |active-set| algorithm doesn't ...

15 years ago | 0

Answered
get position of imfreehand
The output of |imfreehand| is chopped up into a few children (I don't know why), so you have to dig a bit to get the data. Here ...

15 years ago | 0

Answered
How do I get MATLAB to do overlapping plots, ie. not erase the old plot when adding to it?
Assuming you are not creating new axes each time ( _e.g.,_ using |subplot|) try hold on after creating the initial figure.

15 years ago | 0

| accepted

Answered
rgb to hsv or hsi. color of image changes.
Yes, |imshow| is applicable to rgb images only. The reason for using |rgb2hsv| is to adjust hue, saturation or value. Then you h...

15 years ago | 1

Answered
A second basic 'Find' question
My initial response was not very robust, so I have completely rewritten it: data = data(:); % Find how many adjacent terms...

15 years ago | 0

Answered
Generalised eigen system - Extracting eigen values and eigen vectors from given matrices
It would be a waste of time to write your own code for this when there are robust packages available for free. See <http://math....

15 years ago | 0

| accepted

Answered
Piecewise Polynomial (pp) for Bicubic Interpolation
MATLAB hasn't implemented multidimensional polynomials, and there doesn't seem to be anything in the File Exchange. However, if ...

15 years ago | 0

Answered
Set where the plot window pop up.
See <http://www.mathworks.com/support/solutions/en/data/1-3247BL/index.html?product=SL&solution=1-3247BL this MATLAB solution>.

15 years ago | 1

| accepted

Answered
Help on speed optimization of convolution code
You could probably speed it up considerably by using the MATLAB function <http://www.mathworks.com/help/techdoc/ref/filter.html ...

15 years ago | 1

| accepted

Load more