Community Profile

photo

david crowley


Last seen: 7 months ago|Active since 2021

Statistics

  • First Review
  • Thankful Level 3

View badges

Content Feed

View by

Answered
Simple logical conditional flag column
Figured it out tt.C2 = cumsum(tt.C1);

9 months ago | 0

|accepted

Question


Simple logical conditional flag column
I require help to develop some logic on the below data extract. I need the C2 column to toggle to '1' when C1 is '1'. Then, when...

9 months ago | 2 answers | 0

2

answers

Question


从循环中构建数组
我有一个for循环,该循环生成一个数组(newDD),该数组(newDD)在每次迭代中的长度变化。如何创建一个新变量(arra ...

11 months ago | 1 answer | 0

1

answer

Question


Calculate running hold duration
I have a table that lists the history of stock transaction (extract attached). I require assistance to find out how long I've he...

11 months ago | 1 answer | 0

1

answer

Question


除以每行
I am trying to perform the following calculation, but every 52 rows the denominator needs to change from (1,1) to (52,1) then (1...

12 months ago | 1 answer | 0

1

answer

Question


Add String to Matlab Plot Annotation
我正在尝试将注释添加到使用工作空间变量的图中。我已经使用了以下代码,但是唯一的...

1 year ago | 1 answer | 0

1

answer

Question


Ranking values - sorting into descending order
I have a that for each row (i) ranks the column values. However, it ranks them in the ascending order. I require it to be ranked...

1 year ago | 2 answers | 0

2

answers

Question


用于循环到多列
I have the following block of code: %RSI Calculation n = [14:2:18]; for i = 1:n gainC = diff(ABC).*((diff(ABC))> 0); ...

1 year ago | 0 answers | 0

0

answers

Question


Python function to Matlab
I have the following moving average function developed in Python3 that I need to convert into MATLAB. However, I can't seem to f...

1 year ago | 4 answers | 0

4

answers

Question


Finding the difference in timeseries values
If I have the below timetable, how do I find the difference between values? Diff() doesn't work. I've tried diff(TableName.Varia...

1 year ago | 2 answers | 0

2

answers

Question


Setting Arguments using VarFun & RSIndex
Due to the layout of my timetable data, I am required to use the following code when trying to calculate the rsindex(): %Set RS...

1 year ago | 0 answers | 0

0

answers

Question


Using Diff() with NaN values
I am trying to find the difference between rows using the diff() function. However, because the rows contain NaN values I am get...

1 year ago | 1 answer | 0

1

answer

Question


Error using movmax index
I need to find the number of periods since a stock price recorded an 14-day high. My proposed method was to use the following an...

1 year ago | 1 answer | 0

1

answer