Community Profile

photo

MatG


Last seen: 11 months ago Active since 2015

Statistics

  • Thankful Level 2
  • Thankful Level 3

View badges

Content Feed

View by

Question


air to ground system's antenna's offboresight angle in horizontal and vertical planes
I want to compute offboresight angle in horizontal and vertical planes from an airborne transmitter (TX) pointing towards the gr...

1 year ago | 0 answers | 0

0

answers

Question


difference between "geodetic2aer" and "azimuth" function
What is the difference between the azimuth from "geodetic2aer" and "azimuth" functions in matlab? In the following example, I s...

1 year ago | 1 answer | 1

1

answer

Question


logical indexing from matrix to vector
How to extract nonzero columns from rows (in a matrix whose each rows have only one column as 1 and others 0) and put them into ...

2 years ago | 1 answer | 0

1

answer

Question


repeat vector elements and operate on them
I have column vectors A = [a1;a2;...;an] and B = [b1;b2;...;bn] where B elements are integer numbers. I want a fast way to gene...

2 years ago | 2 answers | 0

2

answers

Question


sphere coordinates using latitude and longitude system
If I have a point coordinates A = (LatC, LonC, altC) where LatC, LonC, and altC are the latitude, longitude, and above ground le...

2 years ago | 1 answer | 0

1

answer

Question


return matrix rows and columns using a one-to-one mapped vector for rows and vector for column
I have a large NxN matrix A. How can I use a column vector pnRowsToSelect = [row1; row2; ...; rowM] and a column vector pnColsTo...

2 years ago | 1 answer | 0

1

answer

Question


Build a vector of file names with formatting and leading zeros
How can I build a vector of file names with format "sprintf('myfile_%02d_%03d.txt', firstInteger, secondInteger)" where "firstIn...

2 years ago | 2 answers | 0

2

answers

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 0 answers | 0

0

answers

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 2 answers | 0

2

answers

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 0 answers | 0

0

answers

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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 0 answers | 0

0

answers

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

5 years ago | 2 answers | 0

2

answers

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

5 years ago | 0 answers | 0

0

answers

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

6 years ago | 1 answer | 0

1

answer

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.

7 years ago | 1 answer | 0

1

answer

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

8 years ago | 0 answers | 0

0

answers

Question


fseek and parallel reading (vector position)
fid = fopen('file','rb'); fseek(fid,startposition,'bof'); fread(fid,quantyToRead,'single'); This code will take me to...

8 years ago | 1 answer | 0

1

answer

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

8 years ago | 0 answers | 0

0

answers

Question


plotting a nonlinear curve in matlab
I would like MATLAB to draw the plot for the curve described by the following equation, where for instance (a,b,d) = (-10,-10,-1...

8 years ago | 1 answer | 0

1

answer