How to count the range numbers of a sea state and display a number in each block (in a scatter diagram)?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jose Hlunguane
le 25 Mar 2022
Commenté : jose Hlunguane
le 28 Mar 2022
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]
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/941509/image.png)
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!