Index in position 2 exceeds array bounds (must not exceed 10). Error

%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)
>>

Réponses (1)

per isakson
per isakson le 29 Déc 2018
Modifié(e) : per isakson le 29 Déc 2018
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

Catégories

Tags

Modifié(e) :

le 29 Déc 2018

Community Treasure Hunt

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

Start Hunting!

Translated by