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

조회 수: 1 (최근 30일)
Tania Islam
Tania Islam 2019년 1월 28일
편집: Tania Islam 2019년 1월 29일
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
Guillaume
Guillaume 2019년 1월 29일
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 2019년 1월 29일
편집: Tania Islam 2019년 1월 29일
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,

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by