How to create a threshold on a plot?
10 次查看(过去 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!