필터 지우기
필터 지우기

Overlapping of vectors in matrix

조회 수: 3 (최근 30일)
Kash022
Kash022 2017년 3월 1일
댓글: Jan 2017년 7월 12일
Hi All,
I have a 16x16x1 matrix, randomizations x no_of_inputs x single_point_of_interest. I have to plot like the sample figure below (16 inputs on y axes and 16 on x-axes) from where I can deduce what is the effective range of the randomizations which is useful and covers all the 16 inputs. (between the two dotted lines)?
So each line represented in the figure is for each input (say input_1) which has 16 such randomizations. And there are 16 such lines representing the inputs.
So how can I say that finally my region of interest is between the two dotted lines and covers all the inputs also? (in this case the 3 inputs, lines 1,2,&3).
As seen clearly, please let me know how should I be able find the overlap between all these 3 lines (which in this case say could be between the values 4 and 8 lets say....) Thanks!
  댓글 수: 1
Jan
Jan 2017년 7월 12일
Posting a question twice (see https://www.mathworks.com/matlabcentral/answers/327531-overlapping-of-vectors-in-matrix) and adding the same answer by you own does not seem useful.

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

채택된 답변

Kash022
Kash022 2017년 3월 3일
c = zeros(16,1);
d= zeros(16,1);
for i = 1:16; [c(i) d(i)] = max(your_matrix(:,i,b));
end
max(d);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by