如何为大于数字(例如N)的向量元素绘制向量的直方图(例如B)?
If you generated a column vector of 30 random numbers from a uniform distribution:
x = rand(30,1);
And wanted to use a cutoff of N = 0.3 (from your notation above), instead of using all the values:
hist(x(x>0.3));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.