evaluate a matrix, and create bool array from results

조회 수: 6 (최근 30일)
O Mueller
O Mueller 2017년 10월 28일
댓글: O Mueller 2017년 10월 28일
hey everyone,
i want to evaluate the elements of a 100x100 matrix, if the results are in a certain Boundary Condition. From this i want to create a matrix filled with bools, that symbolize if the B.C. were fulfilled or not. is there something i can do?
th reason for this is that i am vektorizing the whole process, and i need to keep the data of previous matrices.

채택된 답변

Jan
Jan 2017년 10월 28일
Unfortunately you did not mention which kind of boundary conditions you want to apply. Then a guess:
M = rand(100, 100);
BC = (M > 0.2) & (M < 0.8);
  댓글 수: 1
O Mueller
O Mueller 2017년 10월 28일
the b.c. are arbitrary (in my case its almost as you guessed, i need to compare the emissivity of a surface) i just did not know how to do it ;) but this should work.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by