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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

Risposto
string choppping
token = strtok(str, delimiter)

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

| accettato

Carica altro