Réponse apportée
How to calculate Sums in a Panel Data framework using "For Loops"
To get the moving sum of the previous 12 elements, and marking all windows NaN where you don't have 11 previous points, you can ...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Convolution of many vectors
You can use a fun trick here. Each of these polynomials is a quadratic, so you can find their roots easily enough: F = F(:...

environ 9 ans il y a | 0

Réponse apportée
How to exclude the center/current number when performing movmax?
There's no direct way to exclude the current point in a given window with the moving statistics functions. However, since you w...

environ 9 ans il y a | 2

| A accepté

Réponse apportée
Help on calculating cumulative moving average
If you're trying to do a cumulative moving mean, where each time you move to the next element it is the mean of that element and...

plus de 9 ans il y a | 2

Réponse apportée
mean value of a group of data with NaNs
You can also just use the 'omitnan' option in "mean": A = [1 0 0 1 NaN 1 NaN 0]; M = mean(A,'omitnan') M = 0.5...

plus de 9 ans il y a | 2

Réponse apportée
How to convert the mean value of an integer matrix to a double
Are regionA and regionB allocated as integers? It seems likely he final assignment that is casting them back to integers. Sinc...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to limit rounding in matrix division
Your last sentence has the answer: your data type is uint8. Dividing a uint8 by a uint8 is going to give you another integer, s...

presque 10 ans il y a | 0

Réponse apportée
How to interpolate for given inputs in a n*m matrix
If I understand your question correctly, it sounds like <http://www.mathworks.com/help/matlab/ref/griddedinterpolant-class.html ...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Why is MATLAB crashing on medium-to-large matrices?
Does it create a crash log? If so, what's in the log? You can find it using the directions located here: <http://www.mathwo...

presque 10 ans il y a | 0

Réponse apportée
How to realzie iczt use Matlab?
There's not necessarily going to be a straightforward inverse for the Chirp-Z transform unless its parameters define evenly spac...

presque 10 ans il y a | 1

Réponse apportée
How do I reduce this nxmx3 matrix to a (n*m)x3 matrix?
It sounds like you want a combination of <http://www.mathworks.com/help/matlab/ref/permute.html permute> and <http://www.mathwor...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Combine datasets of unequal lengths by matching dates
There's a little bit of ambiguity here, but this shouldn't be too hard. What happens when there is no corresponding date from V...

environ 10 ans il y a | 0

Réponse apportée
Does anyone know how to allocate a vector with datetime elements?
<http://www.mathworks.com/matlabcentral/newsreader/view_thread/338369 This question has appeared before>, but there are two opti...

environ 10 ans il y a | 10

| A accepté

Réponse apportée
Generate 'k' vectors of unique (non-repetitive) integer random variables in the same range
Will, given that you want integers in the range [-50 50] and are trying to generate 1000 numbers for both A and B, you're not go...

environ 10 ans il y a | 1

Réponse apportée
what is the initial phase of the signal y=sin(2*pi*x)? zero or -π?
When taking the FFT of an input array, the first value in the resulting output is the <https://en.wikipedia.org/wiki/DC_bias DC ...

plus de 10 ans il y a | 2

| A accepté

Réponse apportée
I have large number of precipitation daily data in a column (for 50 years) for 221 meteorological stations. Now I need to convert it to monthly sum. How can I do that? thanks.
Things like leap days make this a bit tricky, so here are some general steps you might consider: # Create a <http://www.mathw...

plus de 10 ans il y a | 0

Réponse apportée
Valid part of frequency convolution
To answer your question, it's important to note what _type_ of convolution you're doing. If you have two inputs of length N, fo...

plus de 10 ans il y a | 0

Réponse apportée
Deconvolution of Gaussian from Polynomial Function: Axis-symmetry and Vector-Length-Dependence
To answer your first question, the first input to conv on line 33 is not symmetric; this is why your output is not symmetric. ...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
about FFT and wave packet
You are using different scaling factors for the two expressions; the FFT version is scaled with dx = 0.1963 and the "analytical ...

plus de 10 ans il y a | 0

Réponse apportée
I can't submit support tickets
How have you tried creating the support request? There are several ways you can contact the technical support team: Through the...

plus de 10 ans il y a | 1

Réponse apportée
How can I resize the horizontal lineLength in Legend?
When I try this in R2014a, two objects are returned into |textobj|, and the first seems to correspond to the line that is drawn ...

plus de 11 ans il y a | 0

Réponse apportée
Obtaining fundamental frequency of complex signal from Fourier transform
I think the answer depends on what you mean by "looking directly at the magnitude spectrum of the Fourier transform." If what y...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
imshow error with Matlab 2014a. ... Error using Settings Undefined function or variable 'matlab.internal.getSettingsRoot'. Error in iptgetpref (line 22) s = Settings; Error in imshow (line 234) initial_mag =
This might be a path problem. Try the <http://www.mathworks.com/help/matlab/ref/restoredefaultpath.html |restoredefaultpath|> a...

plus de 11 ans il y a | 2

Réponse apportée
How to find cell IDs attached to points
One way to solve this problem is to construct a sparse matrix |S| such that the element |S(i,j)| is logical |true| if the vertex...

plus de 11 ans il y a | 0

Réponse apportée
How I can use the eig function for nonsymmetric matrices?
The |eig| function does not require any additional options for nonsymmetric matrices. There is an <http://www.mathworks.com/hel...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Image analysis on multiple images
You can place the code you are running inside of a function that you write that takes as input the filename of the image that yo...

plus de 11 ans il y a | 1

Réponse apportée
How to construct a binary matrix reporting 1 in case of equal rows of two arrays of different dimensions?
One way to do this without looping would be to exploit the property that two vectors |w| and |v| are equal if and only if ...

plus de 11 ans il y a | 1

Réponse apportée
maximum variable size allowed by the program is exceeded
Without having access to the TIF file that this code is loading, it is difficult to say for sure, but it seems as if the error i...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to plot data in an irregular/non orthogonal grid?
The |mesh| and |surf| functions can take irregularly spaced vector and matrix inputs that define the mesh. However, their input...

plus de 11 ans il y a | 0

Réponse apportée
sparse( ix, jx, sx, rx, cx ) implausibly slow
Using 5 input arguments with the |sparse| command is indeed an efficient way to construct a sparse matrix. However, you most li...

plus de 11 ans il y a | 1

| A accepté

Charger plus