Community Profile

# MatG

##### Last seen: 30 days ago
19 total contributions since 2015

View details...

Contributions in
View by

Question

means squared error and dB
For curves in X-Y coordinate system where the Y axis is in decibels (dB), I want to calculate the mean squared error (MSE) betwe...

4 months ago | 1 answer | 0

### 1

Question

FFT for long waveform
I should take FFT of a very long vector of length 1,636,399,763 (i.e. length order is 10^9). However, on 128 GB RAM, my code thr...

7 months ago | 0 answers | 0

### 0

Question

set color for scatter plot
How can I set the colors according to the Z value a scatter plot? Here p2dZ is either 0, 1 or 2. I want an scatter plot where h...

7 months ago | 1 answer | 0

### 1

Question

logical indexing on a matrix
Is there a brief way without using much loops to take "all of certain columns" of a matrix and evaluate whether they're larger t...

7 months ago | 1 answer | 0

### 1

Question

imagesc replacement so I can see individual values colorcoded
Is there a way to show the binary matrix b as points (say using scatter or a similar command) so I can see individual 1 and 0 v...

7 months ago | 2 answers | 0

### 2

Question

plot corresponding rows of 2 matrices
Is there an easy way to use plot, or a similar plottign command, to plot rows of matrix X as x value vs rows of matrix Y as y va...

7 months ago | 1 answer | 0

### 1

Question

extending a set of rows from matrix using calculated vector of start and end indexes
How can I calculate start and end indices "startAndEndIndex" and extract all rows of test matrix "testMatrix" between the the st...

7 months ago | 1 answer | 0

### 1

Question

compare two (x,y) plots or vectors optimally
Question: What's a good and fast way to find out whether an (x,y) curve (gray in the figure) is above or below another (X,Y) cur...

7 months ago | 0 answers | 0

### 0

Question

populate matrix columns based on a vector of index vector
I generate an 8x8 A matrix below. I also have an 8x1 vector B containing random integer numbers from 1 to 8. And, I have an 8x1 ...

10 months ago | 1 answer | 0

### 1

Question

avoid memory issues by clear
To avoid using too much memory (or breaking due to memory), is it a feasible approach to use "clearvars -except keepVariables" i...

12 months ago | 1 answer | 0

### 1

Question

finding peaks at distances for curve with certain samples
I have a curve (X-Y) which has its absolute maximum at X=0 and the curve extends (and declines in terms of Y value) to right/lef...

1 year ago | 0 answers | 0

### 0

Question

create a similar but bigger polygon
If I have a polygon say the triangle A=(1,0), B= (2,1),C = (3,0)}formed from x=[1 2 3], y=[0 1 0] using respectively the first, ...

2 years ago | 2 answers | 0

### 2

Question

spectrogram and sampling rate
I have a signal with the following characteristics. I’m using the following code snippet to get the "spectrogram" which does not...

2 years ago | 0 answers | 0

### 0

Question

imagesc an integer 2d array using particular colors
I would like to draw a 2d array of integers whose values are only from the set {11,12,21,22,23,24,31,41,42,43,51,52,71,72,73,74,...

3 years ago | 1 answer | 0

### 1

Question

overlapped bar charts up and down
I would like to plot a bar chart for data [2,3,4,5] and [-3,-2,-1,-4] on up and down as attached.

4 years ago | 1 answer | 0

### 1

Question

importing clutter data (NCLD clutter) into MATLAB
I would like to import the clutter data from USGS (http://www.mrlc.gov/nlcd11_data.php) into MATLAB. The name of the link to dow...

5 years ago | 0 answers | 0

### 0

Question

fseek and parallel reading (vector position)

5 years ago | 1 answer | 0

### 1

Question

solving two equations (cone and sphere intersection)
I am trying to solve the intersection of a sphere centered at (-10,-10,-10) with radius 50 and a cone with apex (0,0,0) and base...

5 years ago | 0 answers | 0