質問


How to condionally keep unique rows in a table
Hi, I have the following table T and I would like to keep only the rows that are unique based on the combination of the variabl...

4年以上 前 | 1 件の回答 | 0

1

回答

質問


How to modify decimal places when exporting data with fprintf
Hi, I have a mixed-type table T that I want to export as a txt file. But I also need to change the number of decimals of T.d to...

4年以上 前 | 2 件の回答 | 0

2

回答

質問


How to do basic time arithmetic when NaNs are involved
Hi, I have the following table and I simply want to calculate the elapsed time between start and end points. My main problem is...

4年以上 前 | 1 件の回答 | 0

1

回答

質問


Fastest way to read mixed-type and position-delimited text files
Hi, I need to convert mixed-type text files that are position-delimited into cell arrays. To do this, I have a reference file w...

4年以上 前 | 1 件の回答 | 0

1

回答

質問


How to use ismember to assign values from one cell array to another cell array
Hi, I have two cell arrays of unequal lengths x = {'C', 'A', 'B', 1; 'C', 'A', 'B', 1; 'C', 'A', 'B', 2; 'B', 'A', 'D', 5} ...

4年以上 前 | 1 件の回答 | 0

1

回答

質問


How to conditionally delete columns in a cell array
Hi, I have a simple cell array that look like this: input = {'A','B','A','A','A','A','A','A'; 'A','A','B','A','A','A','A','A'...

4年以上 前 | 2 件の回答 | 0

2

回答

質問


How to replace values above a given percentile by nans
Hi, I am trying to replace values above the 99th percentile in a table by nans by using Star Strider excellent little function ...

5年以上 前 | 2 件の回答 | 0

2

回答

質問


How to reshape every cell in a structure
Hi, I am trying to reshape every cell in a 1x4 structure with 10 fields. A simplified example would look like this but when I t...

5年以上 前 | 1 件の回答 | 0

1

回答

質問


How to reshape nested cell arrays in a table
Hi, How does one reshape nested cell arrays in Matlab ? Let's say I have something like this: t = table({1:24}, {1:48}, {1:48}...

5年以上 前 | 2 件の回答 | 0

2

回答

回答済み
How to convert cell to cell array of character vectors.
Thank you all for your input.

5年以上 前 | 0

質問


How to subset a table with character elements
Hi, I have a very basic question I would like to understand. Lets say we have a basic table like so: year = {1994, 1994, 1994,...

5年以上 前 | 2 件の回答 | 2

2

回答

質問


How to obtain the unique combinations of two columns in a table
Hi, I am trying to obtain all the unique combinations of two columns in a table. Lets say we have the following table: year = ...

5年以上 前 | 1 件の回答 | 0

1

回答

質問


How to decompose and expand a vector into ones
Hi, How would you decompose and expand a vector in Matlab ? I might not be using the right terminology but let's I = [2, 2]' ...

5年以上 前 | 2 件の回答 | 0

2

回答

回答済み
How to count the number of unique elements by group in a table
I found the answer in an earlier post (https://www.mathworks.com/matlabcentral/answers/418060-count-unique-id-occurrences-in-a-c...

5年以上 前 | 0

| 採用済み

質問


How to count the number of unique elements by group in a table
Hi, How can I count the number of unique elements by group in a table and save the answer in a vector ? % Create table name =...

5年以上 前 | 2 件の回答 | 0

2

回答

質問


How to change the dimensions of a structure
Hi, I have a structure that looks like this: % Create table Name = {'A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C'}.'; Month = ...

5年以上 前 | 1 件の回答 | 0

1

回答

質問


How to use Alternative Box Plot
Hi, I dont have the Statistics and Machine Learning Toolbox and I was wondering if anyone knew how to use the alternative box p...

5年以上 前 | 1 件の回答 | 0

1

回答

質問


How to make a cell array of cell arrays
Hi, How does one make a cell array of cell array in Matlab ? Let's A = (1:70), how can I transform this into a 14x1 cell array ...

5年以上 前 | 3 件の回答 | 0

3

回答

質問


How to convert cell to cell array of character vectors.
Hi, So I have a basic table that looks like this but has over 60 000 rows: A = [48.44, 48.16].'; B = ['A', 'B'].'; C = table...

5年以上 前 | 2 件の回答 | 0

2

回答

質問


How to extract a structure from a nested structure
Hello, I have a nested structure that look like this: % Create table Name = {'A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C'}.'; ...

5年以上 前 | 1 件の回答 | 0

1

回答

質問


How to assign points to multiple polygons using inpolygon
Hi, I am having some difficulties assigning points to multiple polygons. Lets say I have a table with the polygons information:...

5年以上 前 | 2 件の回答 | 0

2

回答

質問


How to declare variables in a function
Hi, I am curious as to why the variables 'user' and 'pass' are not recognized by Matlab in the following snippet. When the user...

5年以上 前 | 1 件の回答 | 0

1

回答

質問


How to convert a table into a structure
Hi, Lets say I have a table that looks like this: Name = {'A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C'}.'; Month = [1, 2, 3, 1...

5年以上 前 | 2 件の回答 | 0

2

回答

回答済み
How to conditionally assign characters for a new column in a table
My bad, nevermind.

5年以上 前 | 0

回答済み
How to conditionally assign characters for a new column in a table
Hi Walter. Your example does work but for some reason when I use it in real life it only applies the first station name and then...

5年以上 前 | 0

質問


How to conditionally assign characters for a new column in a table
Hi, Let's say that I have a simple table like so: lat = [49, 50, 51, 52]; lat = lat' lon = [-99, -100, -101, -102]; lon...

5年以上 前 | 3 件の回答 | 1

3

回答

質問


Add new variable to table based on condition
Hi, I apologize for the newbie question but how does one add a variable to a table in Matlab based on conditions applied to oth...

5年以上 前 | 0 件の回答 | 0

0

回答

質問


How to delete a string in multiple files by using eraseBetween (R2019a)
Hello, I am trying without success to delete a specific string (everything between xmln= and the next space) in multiple tex...

5年以上 前 | 0 件の回答 | 0

0

回答