Community Profile

photo

Benjamin Horsley


Last seen: 1 year ago Active since 2021

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


How can I recode certain values in one vector based on those in another?
I'd like to get some assistance with performing calculations across two different vectors and recoding certain values if a speci...

2 years ago | 1 answer | 0

1

answer

Question


How can I determine the y-intercept from known x and y values?
I have a series of known x and y values (both 161x1 double) and I would like to plot a line graph and determine the slope and y-...

3 years ago | 1 answer | 0

1

answer

Question


How can I structure a loop to calculate a range of residuals to determine optimal filter cut-off frequency?
I'm new to loops and I'd like some help in structuring a for loop statement so I can calculate the root mean square error for a ...

3 years ago | 1 answer | 0

1

answer

Question


How can I add multiple 1 x 1 strings to all rows in a table?
Here is a mock table. % Mock table. headers = {'A' 'B' 'C' 'D' 'E'}; data = cell(4,5); T = cell2table(data); T.Properties...

3 years ago | 1 answer | 0

1

answer

Question


How can I join unequal vectors by adding NaN values?
I have two column vectors of unequal length (basic example below). The first is a vector of known events (target), whereas the s...

3 years ago | 1 answer | 0

1

answer

Question


Why am I receiving an error message in an array calculation?
I'm having some difficulty performing an array calculation. I would like to fill the contents of column 3 based on a specific fo...

3 years ago | 1 answer | 0

1

answer

Question


How can I find the difference between adjacent elements while ignoring the first value?
I have the following column vector. data = randperm(100,15)'; Is there a way of using the "diff" function to find the differen...

3 years ago | 1 answer | 0

1

answer

Question


How can I merge text to numeric data?
I have two variables: A = [1 2 3 4 5 6 7 8 9 10]'; B = ["L", "R"]'; How can I merge A and B where B is of the same height (nu...

3 years ago | 1 answer | 0

1

answer