1

我想知道是否有人可以告诉我哪个相当于Matlabselectifr中的函数?Ox

for(i = 1; i <= sizeof(vdates); i = i+1)
    daily_file = selectifr([bid,ask], dates .== vdates[i]);
    if empty continue
    save daily_file contract_name + "_" + sprint(vdates[i]) ;

我如何将这个程序翻译成Matlab?

4

1 回答 1

1

我从未使用过Ox,但在从docs进行快速谷歌搜索之后。

The selectifr function returns an s x n matrix, 
selecting only those rows from ma which have at least one non-zero element 
in the corresponding row of mifr. 

在函数的什么地方selectifr(const ma, const mifr);

ma = m x n matrix to select from

mifr = m x q boolean matrix specifying rows to select

所以本质上你是在选择 [bid,ask] 的指定日期。就matlab而言,我认为联合的交叉点可能是您在这里需要的

于 2013-09-11T00:00:13.820 回答