How to count the range numbers of a sea state and display a number in each block (in a scatter diagram)?

1 次查看(过去 30 天)
Hi everyone,
I am Alcebiades Hlunguane, and a beginner in MatLab programing.
Can any of you help me in counting for sea state a total o significant wave hights for each see state and build a scatter diagram?
%%%%%%%%%
mu = 0.3149;
sigma = 0.173;
Hs = lognrnd(mu,sigma,63104,12);
lowerbound=1.25;
upperbound=1.75;
data=Hs(Hs>lowerbound & Hs<upperbound);
%%%%%%%%%%
[I expect 57098 displayed]

采纳的回答

Walter Roberson
Walter Roberson 2022-3-26
use histcounts() passing in edges of 0:0.5:5.5

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by