Index exceeds the number of array elements (111)(this is error)

2 visualizaciones (últimos 30 días)
Tania Islam
Tania Islam el 28 de En. de 2019
Editada: Tania Islam el 29 de En. de 2019
hello everyone,
I have two queries.
  1. I want to calculate the average of all maxvalue
  2. i want to find the time of occuarances of each value. this output (res_signal_example.plot1_x_time) contains the time value.
I am working with output value to calculate the transmission delay of getting each peak value.
this are my code.
res_signal_example = EXAMPLE_runner_00_SingleBurst_S2S( )
% particle tracking based (SLOW)
%value = max (res_signal_example.nRx_raw_matrix_wout_noise, [], [1 2])
for k=1:size(res_signal_example.nRx_raw_matrix_wout_noise,3)
a=res_signal_example.nRx_raw_matrix_wout_noise(:,:,k);
[maxv,idx]=max(a(:));
[ii,jj]=ind2sub([size(res_signal_example.nRx_raw_matrix_wout_noise,1) size(res_signal_example.nRx_raw_matrix_wout_noise,2)],idx);
value{k}=[maxv ii jj]
end
celldisp(value);
Following image is the total output of my simulation. I am working with MUCIN simulator. plot1_x_time(1*1000) is the time of occurances of each peak value. I have 111 peak values (1*111). i need to find the time of values in plot1_x_time. I need 111 time value for each peak values.
  5 comentarios
Guillaume
Guillaume el 29 de En. de 2019
Yes, I understood more or less what your data represent. The problem is that you have 2000 values but only 1000 times, so it's not clear how you find the timing of a value.
Tania Islam
Tania Islam el 29 de En. de 2019
Editada: Tania Islam el 29 de En. de 2019
Thank you, By using your hints, I consider it as a 2D. and find the time, and i am trying to plot the time value in histogram.
Again I asked a questions,

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by