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