evaluate a matrix, and create bool array from results
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
O Mueller
am 28 Okt. 2017
Kommentiert: O Mueller
am 28 Okt. 2017
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.
0 Kommentare
Akzeptierte Antwort
Jan
am 28 Okt. 2017
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);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Number Theory finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!