I am trying to run the BMode linear transducer example (in octave) and run into the following error:
Computing scan line 1 of 96
Running k-Wave simulation...
start time: 29-Jan-2024 19:47:05
reference sound speed: 1600.5115m/s
prepending transducer.input_signal with 17 leading zeros
appending transducer.input_signal with 17 trailing zeros
dt: 36.075ns, t_end: 57.1429us, time steps: 1585
input grid size: 216 by 108 by 108 grid points (40 by 20 by 20mm)
maximum supported frequency: 3.78MHz
expanding computational grid...
error: elevation_delay_times(0): subscripts must be either integers 1 to (2^63)-1 or logicals
error: called from
delay_mask at line 1000 column 45
get.input_signal at line 578 column 28
isequal at line 86 column 7
kspaceFirstOrder_expandGridMatrices at line 190 column 12
kspaceFirstOrder_inputChecking at line 1558 column 5
kspaceFirstOrder3D at line 574 column 1
example_us_bmode_linear_transducer at line 242 column 21
Seems like an indexing issue. I can run most of the other examples in Octave, so this seems like some script error somewhere.