How to create a threshold on a plot?
조회 수: 8 (최근 30일)
이전 댓글 표시
How do you create a binary array that tells you whether a (2D) plot is "yes" or "no" above a threshold of 0.5?
댓글 수: 0
답변 (1개)
KALYAN ACHARJYA
2020년 10월 1일
Example:
data_2d=rand(1,20); %Example
threshold_val=0.5;
binary_array=data_2d>threshold_val % This create a binary array based on threshold_val
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Visual Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!