**Statistics**

RANK**2,499**

of 244,083

REPUTATION**15**

CONTRIBUTIONS

**174** Questions

**11** Answers

ANSWER ACCEPTANCE **
68.97%
**

VOTES RECEIVED**11**

RANK

of 17,064

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

How do I identify unique rows based on multiple columns and calculate the average of the rest of the columns?

I have a matrix as below: A = [1 4 3 8; 4 5 6 9; 1 6 3 6; 2 6 9 3; 1 5 3 7]; My goal is to identify rows with both identical C...

1 day ago | 1 answer | 0

### 1

answerQuestion

How to expand a table with more columns?

I have a table T1 with a size of 30000 x 55. How do I add 6 more columns of this table: A, B, C, D, E, F, each of them have a s...

20 days ago | 1 answer | 0

### 1

answerQuestion

How to calculate the binned average at the center of each X and Y grid points?

I have a grid like the below and a 3-column data: x, y, z. [X Y] = ndgrid([-179.5:179.5], [-89.5:89.5]); How do I calculate t...

22 days ago | 1 answer | 0

### 1

answerQuestion

How to specify the color of this contourf plot?

I'm trying to plot the landmask (logical 0 or 1) using a uniform color. Below is my code: % Turning the landmask from logical t...

2 months ago | 1 answer | 0

### 1

answerQuestion

How to create a land/sea mask based on an XYZ bathymetry database?

I have a gridded global bathymetric database with X, Y, and E. X is longitude, Y is latitude, and E is the elevation. E can be p...

2 months ago | 1 answer | 0

### 1

answerQuestion

Export a plot with predefined margins

I'm using the below command to export my plot into a jpeg file: % h is the handle for the figure % File_W is my jpeg file name...

2 months ago | 1 answer | 0

### 1

answerQuestion

Creating depth specific contours from bathymetry data

The bathymetric data are available through NetCDF, Data GeoTiff and ESRI ASCII raster formats: https://www.gebco.net/data_and_pr...

2 months ago | 1 answer | 0

### 1

answerQuestion

Calculation using matrix indexing for elements with a certain thresholds

I need to calculate the percentage differences of all elements that are larger than 5 in two matrices (A and B). Both A and B ha...

2 months ago | 1 answer | 0

### 1

answerQuestion

Matlab parfor transparency violation error.

It is my first time to use Matlab parfor, and I'm getting the transparency violation error as below: Error using A02_use (line ...

3 months ago | 0 answers | 0

### 0

answersHow to write a parallel computing script for this situation?

Many thanks for the input, John! To clarify, the function is not my code. It is a peer-reviewed one from someone else. Were ...

3 months ago | 0

Question

How to write a parallel computing script for this situation?

I have a program that has been running for more than a week. I have no idea how many additional days it will take. Would anyone ...

3 months ago | 1 answer | 0

### 1

answerQuestion

How to read this kind of info out of a txt file and post them into Excel files?

I receive the below info from emails and would store them into an txt file named FmEmail.txt. The info is composed of several gr...

6 months ago | 1 answer | 0

### 1

answerQuestion

Need help using contourfm in Map plotting

Normally, I can use contourf to plot a countour like this: [C1, h1] = contourf (X, Y, Z, [7.9:0.005:8.2], 'LineStyle', 'none' )...

6 months ago | 1 answer | 0

### 1

answerQuestion

How to blank a grid value with a boundary file?

I have a grid like the below: [X, Y] = ndgrid([-180:0.25:179.75],[-90:0.25:89.75]); Z = griddata(...); %on the same grid as X ...

6 months ago | 1 answer | 0

### 1

answerQuestion

How to find the nearby sampling stations

I have millions of samping sations, my goal is to find the nearby stations with a certain distance threshold. What is the best w...

6 months ago | 1 answer | 0

### 1

answerQuestion

How to convert arc length to km?

My goal is to find a good function to calculate the distance for two points for millions of data points. I found the fucntion ll...

6 months ago | 1 answer | 0

### 1

answerQuestion

How to create a callback for radio buttons

I have a group of radio buttons with 3 choices (app.mode1, app.mode2, and app.mode3) in app-designer. When a user clicks one of ...

7 months ago | 1 answer | 0

### 1

answerQuestion

How to change the button names depending on different situations?

I'm referring to buttons within app-designer. For example, I would want the button to be called "load" in one situation, and "p...

7 months ago | 1 answer | 0

### 1

answerMatlab textArea automatic new line issue

It turns out that the issue are the square brackets. Once I replace them with strcat, everything works perfectly now. Before: ...

7 months ago | 1

| accepted

Question

Limits of app-designer spinner input field

I have an app-designer spinner input field called app.A. I can set its limits by below: app.A.Limits = [1, max(cruiseList)]; H...

7 months ago | 1 answer | 0

### 1

answerQuestion

How to find the index of a column data whose values are equal to another column data?

For example: A = [31; 2; 57; 36; 87; 36]; B = [2; 36]; My goal is to find the inex of all the column A that are equal to any ...

7 months ago | 1 answer | 0

### 1

answerQuestion

Matlab textArea automatic new line issue

I'm trying to generate a list of items. For each research cruise, its Year, Month, Day, Longitude, Latitude, etc. should all be ...

7 months ago | 2 answers | 0

### 2

answersQuestion

How to establish the handle value of a personalized plot function?

I need to develop a program that will: (a) plot one set of data into a figure at a time, (b) when the next set of data is plot...

7 months ago | 1 answer | 0

### 1

answerQuestion

How to write this line of code to create a Matlab table?

I have unknown number of column variables in cell array: Var{1} = [ 1; 2; 3; 4; 7]; Var{2} = [33; 10; 46; 7; 2]; ... If I kn...

11 months ago | 1 answer | 0

### 1

answerQuestion

Anyone has issues with the Mathworks Community forum system?

I mean the system I'm using to ask this question. A lot of the time it would freeze for no reason and become uneditable. I wou...

11 months ago | 0 answers | 0

### 0

answersQuestion

Is it possible to have a column data with some numerical values and some strings?

I have some really large data with millions of rows. I would have a column with 95% of them being numerical and 5% being strings...

11 months ago | 1 answer | 0

### 1

answerQuestion

How to read out the strings from this Excel file?

Attached is the Excel file. Here is the code I use to read values out of the Excel file: T1 = readtable ('test.xlsx'); Unfo...

11 months ago | 1 answer | 0

### 1

answerQuestion

How to first form a variable and then assign values to it?

My variable can be anything like the below: if case1 Var = Temperature elseif case2 Var = Pressure elseif case3 V...

12 months ago | 1 answer | 0

### 1

answerQuestion

How to position radio buttons into grid layouts in App Designer?

Is it possible to position each of the radio buttons in a radio button group into a grid layout? Many thanks.

12 months ago | 1 answer | 1

### 1

answerQuestion

How to form a structure array variable?

I have a structure array like the below Test{1}.a = [1; 2; 3]; Test{1}.b = [7; 3; 22]; Test{1}.c = [4; 9; 22]; ... If I hav...

12 months ago | 2 answers | 0