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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

Beantwortet
string choppping
token = strtok(str, delimiter)

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

| akzeptiert

Mehr laden