Beantwortet
MATLAB: NaN problem with heat transfer program
Try running this code after the command dbstop if naninf to see where the problem is occurring.

fast 15 Jahre vor | 1

Beantwortet
Fitting an integral
I think the heart of the problem is that |quad| only accepts scalars for the lower and upper bounds, so it cannot deal with the ...

fast 15 Jahre vor | 0

Beantwortet
3D Box Plotting
For red color, use colormap([1 0 0]) If by making them a different color you mean the whole plot, you could substitute |[0 1...

fast 15 Jahre vor | 1

Beantwortet
Fitting an integral
If your expression is a linear function of the coefficients, as in your example, you could do something like this: ftyp1 = ...

fast 15 Jahre vor | 0

Beantwortet
Finding array elements that include a specified combination of values?
You can extract the parts of the date using yourDate = '201105'; switch length(yourDate) case 6 [Y,M] = datevec(your...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Interpolating data from missing timesteps.
This is Andrew's wife. I prefer to collapse the data gap, do the operation, then re-nanfill the data gap. (I do this when calcul...

fast 15 Jahre vor | 0

Beantwortet
Interpolating data from missing timesteps.
I'm not sure why you want an array that is 46x28x6. My interpretation of your question is that you have a 46x28 matrix of (spati...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
symbolic and numerical factorization in cholmod
This can be done in MATLAB version R2011a (see <http://www.mathworks.com/help/toolbox/mupad/math/math-linalg-factor.html#math-li...

fast 15 Jahre vor | 0

Beantwortet
k nearest neighbor
See <http://www.mathworks.com/matlabcentral/fileexchange/15562-k-nearest-neighbors K Nearest Neighbors>.

fast 15 Jahre vor | 0

Beantwortet
Plotting 2-D intensity slices as 3 D
You could do it using the <http://www.mathworks.com/help/techdoc/ref/slice.html slice> function. See also <http://www.mathworks....

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
problem in executing,wiener program
Your problem occurs in this line: y = real(ifft2(Hf.*Xf))+sigma*randn(N,N); % circular convolution Your noise term does not ...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
ploting reversed laplace function
The Symbolic Toolbox does not substitute numeric values of |t| into the expression unless you ask it to. You could do this: ...

fast 15 Jahre vor | 0

Beantwortet
polyfit semilogy
If |X| vs |Y| is a box count plot, you could <http://www.fast.u-psud.fr/~moisy/ml/boxcount/html/demo.html#7 calculate a local sc...

fast 15 Jahre vor | 0

Beantwortet
take matrix out of ascii file
You should be able to do it with |textscan|. Try adapting <http://www.mathworks.com/products/matlab/demos.html?file=/products/de...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Fminsearch for matrices
It sounds like the problem is with the dimensions of B*X. Does your initial value |x0| have the same dimensions as |A| and |B|?

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Do you suffer from keyboard latency in this forum?
I don't experience any latency. My download speed is 10Mbps and my upload is 500kbps - isn't the latter more relevant for keyboa...

fast 15 Jahre vor | 1

Beantwortet
Integer values on contour plots displayed differently to decimalised values?
Suppose you have labeled the contours using commands like these: [x,y,z] = peaks; [C,h] = contour(x,y,z); text_handles = clab...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Renaming folders
See <http://www.mathworks.com/support/solutions/en/data/1-CO5M97/index.html?product=ML&solution=1-CO5M97 How do I rename a file ...

fast 15 Jahre vor | 3

Beantwortet
Millisecond accuracy
You might be able to do it. There is a lot of discussion on timing in <http://www.mathworks.com/matlabcentral/answers/4781-nano-...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
fit a 3d curve
If you have the <http://www.mathworks.com/products/curvefitting/ Curve Fitting Toolbox>, you could try <http://www.mathworks.com...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
matrix pre-allocation
The first command creates the full array |zeros(10000)| before turning it into a sparse array. The simplest way of creating the ...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
Problem Plotting 4D data
You might be able to do it using <http://www.mathworks.com/help/techdoc/ref/isosurface.html isosurface> with |isovalue=50|. You'...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
uitable in m-file
When I try this, I get a link saying "Please click here for more information." Clicking on it, I get "When you create a table, y...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Solving a nonlinear equation problem
Now you have 18 equations for 11 unknowns, so the system is overdetermined. Unless some of these equations are redundant, you wi...

fast 15 Jahre vor | 0

Beantwortet
nonlinear system of differential algebraic equations
I think |ode15s| is trying to estimate the derivative at the step change. You should run the integration with the first paramete...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
scope of disp()
Did you notice an error message? A quote in the middle of a string should be represented by two quotes. Try this: disp('Now...

fast 15 Jahre vor | 0

Beantwortet
Solving a nonlinear equation problem
Your problem is ill-determined. You have three equations for six unknowns (and possibly a seventh, d). You need to either add so...

fast 15 Jahre vor | 0

Beantwortet
ODE15s-Index exceeds matrix dimensions
@Mona, if you are writing files this long you should learn how to use the debugger (try <http://blogs.mathworks.com/videos/2008/...

fast 15 Jahre vor | 0

| akzeptiert

Frage


How does MATLAB Answers break ties among answers?
In a <http://www.mathworks.com/matlabcentral/answers/5151-how-to-change-the-heaviside-function-and-how-to-use-the-new-function-w...

fast 15 Jahre vor | 2 Antworten | 1

2

Antworten

Beantwortet
zero value in beronoulli trials !!!
The correct expression is M =P.^K.*(1-P).^(N-K).*factorial(N)./(factorial(K).*factorial(N-K)) If you have the Statistics...

fast 15 Jahre vor | 1

| akzeptiert

Mehr laden