Answered
New to mablab and need some basic help!
Consider creating an empty matrix prior to the 'for' statement. Then write the results to that matrix.

5 years ago | 0

Answered
How do I compare each value and take the average of same number of every comparison in a vector?
In which case if A = [95 95 96 96 97 97 95 95], then you could just sort(A) and then apply unique.

5 years ago | 0

Answered
Cell array: How can I calculate the mean of it?
Hi Max, Since it looks like you have the time1 and values1 data in a 1 x 7 numeric array I would create a single 2 x 7 array ...

5 years ago | 0

Answered
I would like to get an cell array output by matching 2 cell arrays and returning with corresponding matched values from other cell array.
Just because I'm miserable with loops would using intersect meet your needs? Something like [c,s,t] = intersect(A,B)...

6 years ago | 0

Question


Using datenum with a structure field
I'm working with a structure called data and there is a data.DATE field with values in format of 'yyyy-mm-dd HH:MM'. When I...

7 years ago | 2 answers | 0

2

answers

Question


Extract some data from a structure and create a new structure.
This is really a follow on to a previous question I asked. I'm given a structure of arrays. The following is an example of this ...

7 years ago | 1 answer | 0

1

answer

Question


How to search a field in a structure and extract all fields that match
Hopefully I'll explain clearly as I haven't worked with structures much. I have been given a large 1x1 structure of arrays with ...

7 years ago | 2 answers | 0

2

answers

Question


using plot with 2 x and 2 y axis
Hello, Here is what I would like to do. I have a matrix which is n x 4. I want to utilize plot to create a figure where colum...

8 years ago | 3 answers | 0

3

answers

Question


Removing rows based on numerical value
I would like to remove rows from a very large array based on a column that increments from 0.00 by tenths or hundreths to very l...

8 years ago | 1 answer | 0

1

answer

Question


Compare multiple columns in a cell array with strcmp
I have an m x n cell array. I would like to pull specific rows that match strings from different columns. Currently, I'm accompl...

9 years ago | 2 answers | 0

2

answers

Answered
How do I extract a row of data from a cell array based on a string?
Still working on this a bit. I've tried the following and just get the 1st row with 'Hill'. hill_log = strcmp(runlog1{:,4}, 'H...

9 years ago | 0