Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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 ...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

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

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
How should I scratch this ticket?
ceil(datevec(exp(1)))+1

environ 15 ans il y a | 1

| A accepté

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

environ 15 ans il y a | 1

Réponse apportée
Uniform distribution help need.
Hint: try hist(x)

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 15 ans il y a | 0

| A accepté

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

environ 15 ans il y a | 1

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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.

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
string choppping
token = strtok(str, delimiter)

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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 ...

environ 15 ans il y a | 0

Réponse apportée
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 ...

environ 15 ans il y a | 0

Réponse apportée
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.

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 1

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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....

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 15 ans il y a | 0

Réponse apportée
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>.

environ 15 ans il y a | 1

| A accepté

Réponse apportée
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 ...

environ 15 ans il y a | 1

| A accepté

Charger plus