Question

Axes not appearing when I save plot in a folder

When I am plotting a figure, axes are showing in the plot editor But when I am directly saving the plot as .png in a folder, ax...

2 years ago | 0 answers | 0

Question

Distribute matrix elements to smaller grids.

I need to distribte matrix elements into a smaller grid size. For example, I have a matrix with size 2x2 [10 20 30 40] I w...

2 years ago | 1 answer | 0

Answered

Extract data for each district in India from a matrix

refer to https://in.mathworks.com/matlabcentral/answers/440861-extract-data-from-a-matrix-for-each-polygon-in-a-shape-file

Extract data for each district in India from a matrix

refer to https://in.mathworks.com/matlabcentral/answers/440861-extract-data-from-a-matrix-for-each-polygon-in-a-shape-file

2 years ago | 0

Question

Extract data from a matrix for each polygon in a shape file

I have a matrix (331X301) at 0.1 degree resolution data encompassing entire India and a shapefile with 2299 attributes(polygo...

2 years ago | 1 answer | 0

Question

Extract data for each district in India from a matrix

I have a matrix (331X301) at 0.1 degree resolution data encompassing entire India and a district level shapefile wi...

2 years ago | 1 answer | 0

Question

Argument on 2 vectors without using for loop

I have 2 vectors A=[10 22 31 14 55 16 47 18]; B= [1 2 1 1 1 2 1 2]; I want to make a third vector C which contains v...

2 years ago | 1 answer | 0

Question

pvalue for rate of change

I have a matrix (aa) 5000 x 12 matrix containing temperature for 5000 (1x1) grids for 12 years. I estimated the rate of change i...

2 years ago | 1 answer | 0

Question

Extract values from a matrix by lat lon coordinates

I have a 3 dimensional matrix say X= n*n*data ; where the 3 dimensions represent lat lon and data and X is at 0.5 degree reso...

2 years ago | 1 answer | 0

Question

mask area outside a shapefile

I am trying to mask data (lon,lat,data) outside a shape file, 'shp1'. I used top use arcgis for masking data but would prefer ma...

2 years ago | 0 answers | 0

Question

attach a field to a shapefile and plot it

I have a shapefile of India with state boundaries (34 polygons within the India shapefile).See the attached screenshot and the s...

2 years ago | 1 answer | 0

Question

Bar plot with error bar

I have to plot bar plots with error bars but the error bars. For example A 10(4-18) B 21(11-28) C 32(1...

2 years ago | 2 answers | 0

Question

Sum values corresponding to a number in a vector

4 1 4 10 4 2 8 20 5 12 5 4 5 8 5 6 Suppose I have two vectors, I need average of the dig...

2 years ago | 1 answer | 0

Question

match with ismember function

Suppose I have a matrix and a vector, Mat= [1 343 3 655 4 565 7 676] and a vector v = [1...

3 years ago | 1 answer | 0

Question

Count occurrences of an event by date

I am facing an issue with counting number of occurrences by date, suppose I have an excel file where the data are as follows ...

3 years ago | 3 answers | 0

Question

Remove a subset matrix from another matrix

Suppose I have a certain matrix A in form 28 77 145 127 29 77 166 877 30 77 176 822 31 7...

3 years ago | 1 answer | 0

Question

match on a string

I have a phone book directory with country codes for all the countries in the format a = { 886 TW ...

3 years ago | 2 answers | 0