Question


Finding a needle in a matrix
Hello, Let's say I have a 10 x 10 matrix filled with numbers (10 X 10 double) which can only be 1, 2 or 3. I need a code that...

7 years ago | 1 answer | 0

1

answer

Question


Basic if statement with a cell array
Hello all, Let's say I have a basic cell array : x = {1 2 3 4 5 8}. Now, I want to verify that this array only contains those...

7 years ago | 1 answer | 0

1

answer

Question


How to find columns by name in a cell aray
Hello all, Let's say I have a large cell array with similar variable names in the first row (A_F1 , B_F2 , A_F2 , G_F5 .....

7 years ago | 1 answer | 0

1

answer

Question


How can I merge two rows into one
Hi all, Newbie question here. Let's say I have 6 variables (A-F) and values in 2 rows like this: A B C D E F 1 ...

8 years ago | 1 answer | 0

1

answer

Question


How to delete rows that contain NaN in a table
Hello all, So how do you delete all the rows that contain NaNs in a table (not a matrix or a cell array)? I have tried vario...

8 years ago | 2 answers | 0

2

answers

Question


How to format a cell array
Hi, Quick question here. I have a 1x15 cell which contains 15 24x1 double (i.e 15 cells, each containing 24 numbers). Is ther...

8 years ago | 2 answers | 0

2

answers

Question


Interpolation by pressure using interp1
Hello all, I have a table with 3 variables: sampling station, pressure (decibar) and temperature. For each of my 46 stations,...

8 years ago | 1 answer | 0

1

answer

Question


How to copy and rename files in a different folder
Hi all, Let's say I have 3 text files (001X, 002Y and 003Z) in the folder A. Now, I want to first move these files to a creat...

8 years ago | 4 answers | 0

4

answers

Question


Time conversion in a table
Hi all, Let's say I have a table and one of my variable is a mix of numbers and NaNs, like so: [1010, NaN, 1256, NaN, 1345...]....

8 years ago | 1 answer | 0

1

answer

Question


Easy question converting numbers to hours
Hi all, I know this should be easy, but how would you convert whole numbers into HH:MM format? Like say 1156 into 11:56 ? Than...

8 years ago | 1 answer | 0

1

answer

Question


How to delete specific lines in a table
Hello all, Let's say I have a table A with 15 variables. In this table, I have variable B which contains a weird mix of numbers...

8 years ago | 2 answers | 0

2

answers

Question


How to delete empty lines in a table
Hello all, I have an easy question for you. How would you delete all empty lines in a table? Thank you

8 years ago | 1 answer | 0

1

answer

Question


Easy columns merge question
Hi all, I have an easy merge question.Let's say I have 2 columns that look like this: A = [1 NaN 3 NaN 5 6 ...] and B = [NaN 2 ...

8 years ago | 2 answers | 0

2

answers

Question


Newbie question about table indexing,loops and logical arguments (should be easy)
Hello all, Lets say I have a table with two variables. X contains either characters or various empty cells(,) like so: X = [A...

8 years ago | 2 answers | 0

2

answers

Question


Newbie question about date format
Hi all, I have a 100 x 1 cell array with with a date format like 19-7-66 that I want to change into 19-September-1966. How woul...

8 years ago | 2 answers | 0

2

answers