Community Profile

# Abhishek Chakraborty

Last seen: 14 days ago Active since 2020

#### Content Feed

View by

Question

How to extract date, month, year, and time from a table data?
I have a table data like "A" like this: >> A(1:49,1) ans = 49×1 table DateTime _________________...

1 month ago | 2 answers | 0

### 2

Question

How to create a chloropleth map from a given raster array and Lat Lon meshgrid arrays?
I have a raster array (R), a shapefile (District_Boundaries.zip), and lat lon meshgrid arrays (LatGrid.mat and LonGrid.mat). How...

2 months ago | 0 answers | 0

### 0

Question

How to standardize an array so that the maximum value is 1 and minimum is -1 keeping the zero value as zero?
I wanted to standardize an array so that the maximum value of the array takes the value "1" and the minimum value takes the valu...

2 months ago | 6 answers | 0

### 6

Question

How to create the means of the spatial sub-units of a shapefile from a raster dataset?
I wanted to get the spatial averages from a raster file for each of the spatial sub-units of a shapefile. How to get the same? I...

2 months ago | 0 answers | 0

### 0

Question

How to create a chloropleth map using the mean of the shapefiles sub-fields from a raster file?
I am trying to create a chloropleth map which would show the means over the sub-regions of the shapefile using a raster file (th...

2 months ago | 1 answer | 0

### 1

Question

How to have a common colorbar for all tiledlayout plots?
I want to plot two arrays A and B (both having 4 rows and 8 columns) using the tiledlayout format so that both of them have a co...

8 months ago | 1 answer | 0

### 1

Question

How to find the row wise p values corresponding to each coefficient of linear regression?
I have 3 matrices Y, x1, and x2 each having 3420 rows and 29 columns. I want the row wise linear regression p values of Y on x1,...

8 months ago | 1 answer | 0

### 1

Question

My geotiffinfo command is not working suddenly. How to correct the error?
I was using the "geotiffinfo" command to read the lat and lon of a geotiff file. It was working well till last night but suddenl...

9 months ago | 0 answers | 0

### 0

Question

How to place a common colorbar for tiledlayout plots?
I wanted to place a large common colorbar towards "east" for a series of plots using tiledlayout. I used the following code: f...

9 months ago | 1 answer | 0

### 1

How to run a loop to find the Hurst exponent corresponding to each row of the array?
I got it myself. Here is the code for it: nsample = 22; nvar = 352736; H = zeros(nvar,1); for i = 1:nvar H(i,1)=genhurs...

10 months ago | 0

| accepted

Question

How to run a loop to find the Hurst exponent corresponding to each row of the array?
I have an array of 352736 rows and 22 columns , X. I want to find the Hurst coefficient corresponding to the elements in each ro...

10 months ago | 1 answer | 0

### 1

Question

How to make such a colorbar for bivariate analysis as shown in the attached figure below?
I wanted to make a colorbar for my maps like the one shown below. How to make such a colorbar on MATLAB?

11 months ago | 0 answers | 0

### 0

Question

How to find the multiple linear regression coefficients for this case?
I have three matrices each of 3420 rows and 28 columns, namely, y, x1, and x2. I want to build a multiple linear regression such...

1 year ago | 0 answers | 0

### 0

Question

How to find the row wise linear regression coefficients?
I have 3 matrices Y, x1, and x2 each having 3420 rows and 29 columns. I want the row wise linear regression coefficients of Y on...

1 year ago | 1 answer | 0

### 1

I have a 4 column matrix. I want to find the value corresponding to the minimum value of column 2. How to find it?
A=[1 2.4 3.4 5;2 -0.2 3 4;3 8.1 3.2 4;4 0.5 5 2]; [minvalue,index]=min(A(:,2)); A(index,1) ans = 2

1 year ago | 0

| accepted

Question

I have a 4 column matrix. I want to find the value corresponding to the minimum value of column 2. How to find it?
I have a matrix, A A=[1 2.4 3.4 5;2 -0.2 3 4;3 8.1 3.2 4;4 0.5 5 2] I want to find the value in column 1 corresponding to the ...

1 year ago | 1 answer | 0

### 1

Question

How to change heatmap xtick labels? Also, how to overlay (hold on) some dots over the heatmap?
My intention is to get a plot like this: I have a matrix similar to that for which I want to plot the correlation coefficie...

1 year ago | 1 answer | 0

### 1

How to reshape a matrix by rows?
Got it... B=reshape(A',1,[]);

1 year ago | 0

| accepted

Question

How to reshape a matrix by rows?
I want to reshape a matrix A into a row vector but it has to be reshaped row wise. The matrix is: A=[1 2 3 4;5 6 7 8;9 10 11 12...

1 year ago | 1 answer | 0

### 1

Question

How to plot a matrix containing NaN?
I have a MATLAB 2-D array which I want to plot which contain only 2 numbers : 0 and 1. It also contains a few NaNs. I want to pl...

1 year ago | 2 answers | 0

### 2

Question

How to run a multiple linear regression of this format?
I want to run a multiple linear regression model of this form: where, is the intercept and all other terms are the coeffic...

1 year ago | 1 answer | 0

### 1

Question

How to find the mean of 12 different 3-D arrays containing nan so that I can omitnan in the final calculations?
I have 12 different 3-D arrays, say A, B, C, D, E, F, G, H, I, J, K, L, each of them having the dimension of 60x57x372. All of t...

1 year ago | 1 answer | 0

### 1

Question

How to mask a 3-D raster using a multiple feature attribute shapefile?
I wanted to mask a raster file using a shapefile which contains more than one feature attributes. For shapefile containing only ...

2 years ago | 1 answer | 0

### 1

Question

How to convert cell array containing text to numbers?
I have a cell array containing a mixture of numbers and letters. I want to remove all the letters and keep only the numbers in i...

2 years ago | 1 answer | 1

### 1

Question

How to read an xls file in matlab which has latitude (suffixed with N), longitude (suffixed with E), time (prefixed with the month), and a value corresponding to latitude and longitude in it?
The xls file looks like this... The first column is the longitude. I want to extract only the number from it. For example, i...

2 years ago | 1 answer | 0

### 1

Question

How to assign a different value to a given value in a 2-D array?
I have a 900x1200 element 2-D array. Suppose it is A. I want to assign a value "1" to all the elements whose value is "5". How c...

2 years ago | 1 answer | 0

### 1

Question

How to extract the first four and last four digits of all numbers of an array where each number is of 12 digits?
I have an array of over 200,000 numbers. Each of these numbers is of 12 digits. I want to extract and form another array with: (...

2 years ago | 1 answer | 0

### 1

Question

How to interpolate the matrix A ?
I want to interpolate a matrix "A" containing 3633 rows and 3506 columns with many scattered NaNs to another matrix "B" containi...

2 years ago | 1 answer | 0

### 1

Question

How to find row wise correlation coefficients and p values for two matrices?
I have two matrices, A and B. Both A and B have 3420 rows and 29 columns. I want the correlation coefficients and P values of th...

2 years ago | 1 answer | 0