回答済み

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

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

4年弱 前 | 1

回答済み

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

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

約4年 前 | 2

| 採用済み

回答済み

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

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

約4年 前 | 0

回答済み

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

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

約4年 前 | 0

回答済み

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

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

約4年 前 | 1

| 採用済み

回答済み

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

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

約4年 前 | 0

回答済み

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

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

5年弱 前 | 0

回答済み

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

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

約5年 前 | 0

| 採用済み

回答済み

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

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

約5年 前 | 2

回答済み

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

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

約5年 前 | 0

回答済み

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

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

約5年 前 | 0

| 採用済み

回答済み

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

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

約5年 前 | 1

回答済み

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

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

約5年 前 | 1

回答済み

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

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

約5年 前 | 0

| 採用済み

回答済み

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

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

約5年 前 | 0

回答済み

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

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

約5年 前 | 1

| 採用済み

回答済み

How to subtract an (n by m) matrix from an (n by m) by k matrix without looping?

While |bsxfun| is the preferred method for doing this, for the sake of completeness in answering the question you can also use i...

How to subtract an (n by m) matrix from an (n by m) by k matrix without looping?

While |bsxfun| is the preferred method for doing this, for the sake of completeness in answering the question you can also use i...

約5年 前 | 0

回答済み

In my code, arrayfun slower than for loop

The |arrayfun| function simply applies a given function to each element of the array that you supply. In this sense, |arrayfun| ...

In my code, arrayfun slower than for loop

The |arrayfun| function simply applies a given function to each element of the array that you supply. In this sense, |arrayfun| ...

約5年 前 | 1

| 採用済み

回答済み

circular convolution - why the third argument - what is the use?

The third argument of |cconv| is used to control the length of the result of the convolution. To calculate what would typically...

circular convolution - why the third argument - what is the use?

The third argument of |cconv| is used to control the length of the result of the convolution. To calculate what would typically...

約5年 前 | 0

| 採用済み

回答済み

How Can I take 3d image from 3 matrix ( x,y,z) in one step ??

The key to removing the |for| loops from this code is to make use of a different kind of matrix indexing. In addition to row an...

How Can I take 3d image from 3 matrix ( x,y,z) in one step ??

The key to removing the |for| loops from this code is to make use of a different kind of matrix indexing. In addition to row an...

約5年 前 | 0

回答済み

apply function with two variables

You should be able to make your code significantly faster by *vectorizing* it (see <http://www.mathworks.com/help/matlab/matlab_...

apply function with two variables

You should be able to make your code significantly faster by *vectorizing* it (see <http://www.mathworks.com/help/matlab/matlab_...

約5年 前 | 0

| 採用済み

回答済み

TEXTSCAN Reads from Fortran Output - Precision Problem

By default, MATLAB is displaying the numbers in the |short| format. As a result, while it may appear from the display that thes...

TEXTSCAN Reads from Fortran Output - Precision Problem

By default, MATLAB is displaying the numbers in the |short| format. As a result, while it may appear from the display that thes...

約5年 前 | 1

| 採用済み

回答済み

How can I convolve my image with small patch of size 16 X 16 of same image? My kernel is the patch of that image

What type of convolution are you trying to do? If you want a _circular_ convolution, you should use the FFT to calculate it (see...

How can I convolve my image with small patch of size 16 X 16 of same image? My kernel is the patch of that image

What type of convolution are you trying to do? If you want a _circular_ convolution, you should use the FFT to calculate it (see...

約5年 前 | 0

| 採用済み

回答済み

Can Matlab (Windows) display 10 bit images on a 10 bit monitor using a suitable graphics card?

While it is possible to render the figure with OpenGL, it will not truly display as a 10-bit image. To minimize the amount of m...

Can Matlab (Windows) display 10 bit images on a 10 bit monitor using a suitable graphics card?

While it is possible to render the figure with OpenGL, it will not truly display as a 10-bit image. To minimize the amount of m...

約5年 前 | 0