질문

How do you remove tick marks (not labels) from a colorbar?
I have a figure plotted with imagesc and the associated colorbar. How do I remove the tick marks from the colorbar?

거의 2년 전 | 답변 수: 2 | 0

### 2

답변

질문

How do I make a red and blue colormap?
I can plot a matrix of integers using imagesc. How do I make a discrete colormap (i.e., only for the integers) with a gradient o...

거의 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

How do I pad a vector of type double so that there are say 5 elements with zeros after every 3rd element in the original vector?...

거의 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

How do I take the average of elements of a vector depending on the values of another vector?
Given two vectors, how do I take the average of values in one vector depending on what the value is in the second vector? For...

거의 2년 전 | 답변 수: 2 | 0

### 2

답변

질문

How do I insert one array into another?
I have two arrays with elements of type double. I want to insert the 1st column of array 2 after the 1st column of array 1, the ...

거의 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Cell array to double array?
I have a cell array with each element a vector of type double. How do I convert this to an array of type double?

거의 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Removing the suffix from a variable name
I have many variables all called something like A_YYY where YYY can be any combination of characters and numbers of different le...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Replacing values in array with values from another array
The values in each row of an array correspond to the values i, j of an upper triangular array. How do I return a vector with ele...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Replacing elements in a vector
The values of an array match the index of elements in a vector. For example, the value of 5 in array1 below corresponds to whate...

대략 2년 전 | 답변 수: 2 | 0

### 2

답변

질문

How do you get all pairs without double counting?
Given, say, 10 numbers, how do you get all possible pairs between the numbers without double counting? Order doesn't matter, so ...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Geometric mean with logarithmically spaced data?
This is partly a Matlab question, partly conceptual. I generated three vectors with logarithmically spaced numbers using logspac...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Error when taking the continuous time Fourier transform
I am trying to figure out what the error is associated with taking a Fourier transform. I have a 1D vector A of 130 elements and...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Documentation for mean function
I have a 200×1 cell array where each element is {130×1 double}. I want the mean for all the first elements in the 200 cells, all...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Averaging elements for a cell within a cell array
I have a 200×1 cell array where each element is {130×1 double}. How do I take the mean of every element in each cell-within-the...

대략 2년 전 | 답변 수: 3 | 0

### 3

답변

질문

Symbolic expression for exponential decay
To calculate an exponential decay with a single constant , , why do you need to multiply the following by a heaviside function a...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Applying an anti-aliasing filter
I've been trying to understand how to design and implement an anti-aliasing filter. I'm really stuck. I have an analytic functio...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Using the lowpass function
In using the lowpass function, how can you suppress the display after? (The default implementation outputs plots of the time-dom...

대략 2년 전 | 답변 수: 2 | 0

### 2

답변

질문

Anti-aliasing filter design
Can you use the lowpass function as an anti-aliasing filter, or is there some preferrable way to do it such as using the butter ...

대략 2년 전 | 답변 수: 2 | 0

### 2

답변

질문

How do you determine the arguments to the `buttord` function?
This is more of a conceptual question -- there are examples on the page for this function, but how do you select what the passba...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

How do you calculate a correlation function in MATLAB?
I am trying to calculate the correlation function given by where I sum over all i ("part" in the following). Do I just choose...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Error with pinv in MATLAB r2018a
I am taking the pseudoinverse of a matrix using pinv but get the following error: Error using svd SVD did not converge. E...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

How do you build multiple cell arrays from the columns of an array?
Given an m x N array of type double, how do you separate the columns into cells so that you have N, m x 1 cell arrays?

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

Using vertcat for cell array of differing length
I have a 3 x 2 cell array consisting of elements that are vectors 1 x N where N changes. How do I find the vector of minimum len...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

How do you average vectors in a cell array?
A cell array of vectors of type double, say: 1 x 10000 1 x 10000 1 x 10000 How do you average the values into one array ...

대략 2년 전 | 답변 수: 1 | 0

### 1

답변

질문

What determines the maximum frequency when taking the FFT?
This is part conceptual, part MATLAB, but how do you set the maximum frequency when taking the FFT of a signal? According to the...

대략 2년 전 | 답변 수: 2 | 0

### 2

답변

질문

Taking the fft of a signal sampled above the Nyquist rate but getting strange results
I have been trying to reproduce a frequency domain function from a time domain signal, but getting nothing like what I expect. ...

2년 초과 전 | 답변 수: 1 | 0

### 1

답변

질문

Trying to understand the single-sided FFT
For a single-sided FFT, is it correct to multiply the FFT by 2, if so why? Also, I have seen some examples that take the absolut...

2년 초과 전 | 답변 수: 3 | 1

### 3

답변

질문

Adding nodes from a sub-graph to a larger graph
I have an adjacency matrix for a graph consisting of 10 nodes and the edges between them. But they are part of a larger graph, a...

2년 초과 전 | 답변 수: 1 | 0

### 1

답변

질문

Setting elements of an array to be zero based on the values of a vector
I want to take the matrix A (as an example) and set all elements of A that have either their row and/or column as a value in B t...

2년 초과 전 | 답변 수: 4 | 0

### 4

답변

질문

Setting an element of an array to zero based on the values of a vector
Given a 2D array with elements a(i,j), if either i or j matches any element in another vector, how do you set the value for that...

2년 초과 전 | 답변 수: 1 | 0

답변