Bellhop: index exceeds the number of array elements (0)

9 次查看(过去 30 天)
'Test Scapa Summer' ! TITLE
10.0 ! FREQ (Hz)
1 ! NMEDIA
'SVN' ! SSPOPT (analytic or C-linear interpolation)
51 0.0 260.0 ! DEPTH of bottom (m)
0.0 1498.18 /
10.0 1498.34 /
20.0 1498.51 /
30.0 1498.67 /
40.0 1498.83 /
50.0 1499.00 /
60.0 1499.16 /
70.0 1499.32 /
80.0 1499.49 /
90.0 1499.65 /
100.0 1499.81 /
110.0 1499.98 /
120.0 1500.14 /
130.0 1500.30 /
140.0 1500.47 /
150.0 1500.63 /
160.0 1500.80 /
170.0 1500.96 /
180.0 1501.12 /
190.0 1501.29 /
200.0 1501.45 /
210.0 1501.62 /
220.0 1501.78 /
230.0 1501.94 /
240.0 1502.11 /
250.0 1502.27 /
260.0 1502.43 /
A0.0
260.0 1600.00 0.0 1.0 /
1 ! NSD
15.0 / ! SD(1:NSD) (m)
51 ! NRD
0.0 220.0 / ! RD(1:NRD) (m)
1001 ! NR
0.0 80.0 / ! R(1:NR ) (km)
R! ’R/C/I/S’
0 ! NBeams
-20.0 20.0 / ! ALPHA1,2 (degrees)
0.0 250.0 85.0 ! STEP (m), ZBOX (m), RBOX (km)
  2 个评论
Zoe Haywood
Zoe Haywood 2021-6-16
Yes it is and I used plotssp. This worked on the Munk practice one so I believe I've just got some lines wrong in the env file but not sure which ones. These were the full error messages:
Index exceeds the number of array elements (0).
Error in read_env_core (line 233)
Bdry.Bot.Opt = [ BotOpt( nchars( 1 ) + 1 : nchars(
2 ) - 1 ) blanks( 3 - ( nchars( 2 ) - nchars( 1 ) ) )
];
Error in read_env (line 19)
[ TitleEnv, freq, SSP, Bdry, fid ] = read_env_core(
envfil ); % read in the environmental file
Error in plotssp (line 11)
[ ~, ~, SSP, Bdry, ~, ~, ~, ~, fid ] = read_env(
envfil, 'BELLHOP' );

请先登录,再进行评论。

采纳的回答

Chunru
Chunru 2021-6-17
Check the quotation marks. AcousticToolbox input use the single quote " ' " for input.
260.0 1502.43 /
A0.0
260.0 1600.00 0.0 1.0 /
0.0 80.0 / ! R(1:NR ) (km)
R! ’R/C/I/S’
0 ! NBeams

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by