Octave 什么是八度音;查找()-惯性导航与制导?

Octave 什么是八度音;查找()-惯性导航与制导?,octave,Octave,day[]基本上相当于几年的[1:365 1:365 1:365…],有很多洞。长度是5556 find() find(2 == day)' ans = Columns 1 through 13: 364 729 1094 1460 1825 2190 2555 2921 3286 3651 4016 4382 4747 Columns 14 and 15: 5095 5459 >> find(3 == day)

day[]
基本上相当于几年的[1:365 1:365 1:365…],有很多洞。长度是5556

find()

find(2 == day)'
ans =
 Columns 1 through 13:
    364    729   1094   1460   1825   2190   2555   2921   3286   3651   4016   4382   4747
 Columns 14 and 15:
   5095   5459
>> find(3 == day)'
ans =
 Columns 1 through 13:
    365    730   1095   1461   1826   2191   2556   2922   3287   3652   4017   4383   4748
 Columns 14 and 15:
   5096   5460
>> find(4 == day)'
ans =
 Columns 1 through 13:
      1    366    731   1096   1462   1827   2192   2557   2923   3288   3653   4018   4384
 Columns 14 through 16:
   4749   5097   5461
返回合理的索引值,但我不理解

find(2:4 == day)'
ans =
 Columns 1 through 11:
     364     729    1094    1460    1825    2190    2555    2921    3286    3651    4016
 Columns 12 through 22:
    4382    4747    5095    5459    5921    6286    6651    7017    7382    7747    8112
 Columns 23 through 33:
    8478    8843    9208    9573    9939   10304   10652   11016   11113   11478   11843
 Columns 34 through 44:
   12208   12574   12939   13304   13669   14035   14400   14765   15130   15496   15861
 Columns 45 and 46:
   16209   16573

由于
day[]
的长度是5556,返回的是什么?

我假设
day
是一个列向量。否则,该语句将出错

我建议您分部分执行该语句:runjust
2:4==day
。这应该是一个5556x3矩阵,其中第一列为true,其中
day==2
,第二列
day==3
,等等

find
如果元素为真,只返回(线性)索引。

请不要在标题中编辑“已解决”。相反,如果答案解决了你的问题,就接受它,或者写下你自己的答案,如果你找到了不同的解决方案,就接受它。请看这里: