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

quasi 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 7 anni fa | 0

Domanda


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

circa 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 9 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 2 risposte | 0

2

risposte

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

quasi 11 anni fa | 0