Index in position 2 exceeds array bounds. Index must not exceed 1. Error in refPose = data.ActorSpecifications(1,46).Waypoints;
1 回表示 (過去 30 日間)
古いコメントを表示
%% load the scene data files
% load data from Driving Scenario Designer
load('USHighway.mat');
refPose = data.ActorSpecifications(1,46).Waypoints;
% define data for velocity lookup table
lookUpt = readmatrix('velocityDistributionHighway.xlsx');
xlt = lookUpt(2:42,1);
ylt = lookUpt(1,2:31);
vel = lookUpt(2:42,2:31)*4/5;
% specify simulation stop time
Ts = 45*5/4;
0 件のコメント
回答 (1 件)
KSSV
2023 年 1 月 25 日
Change this line:
refPose = data.ActorSpecifications(1,46).Waypoints;
to
refPose = data.ActorSpecifications(46,1).Waypoints;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulate Responses to Biological Variability and Doses についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!