Question

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

ungefär 3 år ago | 2 answers | 2

Question

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

ungefär 3 år ago | 1 answer | 0

Question

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

ungefär 3 år ago | 2 answers | 0

Answered

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

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

ungefär 3 år ago | 0

| accepted

Question

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

ungefär 3 år ago | 2 answers | 0

Question

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

ungefär 3 år ago | 1 answer | 0

Question

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

ungefär 3 år ago | 1 answer | 0

Question

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

ungefär 3 år ago | 3 answers | 0

Question

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

ungefär 3 år ago | 2 answers | 0

Question

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'}.'; ...

ungefär 3 år ago | 1 answer | 0

Question

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

ungefär 3 år ago | 2 answers | 0

Question

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

ungefär 3 år ago | 1 answer | 0

Question

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

ungefär 3 år ago | 2 answers | 0

Answered

How to conditionally assign characters for a new column in a table

My bad, nevermind.

How to conditionally assign characters for a new column in a table

My bad, nevermind.

ungefär 3 år ago | 0

Answered

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

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

ungefär 3 år ago | 0

Question

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

ungefär 3 år ago | 3 answers | 1

Question

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

ungefär 3 år ago | 0 answers | 0

Question

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

mer än 3 år ago | 0 answers | 0