Index in position 2 exceeds array bounds (must not exceed 10). Error
Show older comments
%ploting neff FD vs f_nominal, single selection and range selection
figure(gg);
plot(f_nominall{file_i},n_eff_FD_all_HiRes_range{file_i}',strcat('',markerstyle{file_i}),'color',color_vec(file_i,:),'markersize',10,'linewidth',2)
figure(gg2);
% hold on
plot(MeasTime(:,file_i),n_eff_FD_all_HiRes_range{file_i},strcat('',markerstyle{file_i}),'color',color_vec(file_i,:),'markersize',12,'linewidth',2)
% %ploting neff TD vs f_nominal
% figure(gg1);
% plot(f_nominall(:,file_i),n_eff_TD_all_HiRes{file_i},strcat('',markerstyle{file_i}),'color',color_vec(file_i,:),'markersize',12,'linewidth',2)
%
end
I get this error for my code
Error in TX_Process_SamW (line 288)
plot(MeasTime(:,file_i),n_eff_FD_all_HiRes_range{file_i},strcat('',markerstyle{file_i}),'color',color_vec(file_i,:),'markersize',12,'linewidth',2)
>>
Answers (1)
per isakson
on 29 Dec 2018
Edited: per isakson
on 29 Dec 2018
0 votes
I guess that when the error is thrown
- file_i > 10
- the number of columns of MeasTime is 10 or
- the length of n_eff_FD_all_HiRes_rangem or markerstyle is 10 or
- the number of rows of color_vec is 10
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!