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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 1

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

Respondida
string choppping
token = strtok(str, delimiter)

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 1

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

| aceptada

Cargar más