FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
check_CTD-RDB/plot_hist.m at master · euroargodev/check_CTD-RDB · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
euroargodev
/
check_CTD-RDB
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
6
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
check_CTD-RDB
/
plot_hist.m
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (22 loc) · 551 Bytes
Breadcrumbs
check_CTD-RDB
/
plot_hist.m
Copy path
File metadata and controls
24 lines (22 loc) · 551 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function
h
=
plot_hist(
vec
,
binedges
,
bincent
,
label
,
xl
,
yl
,
ftsz
,
figsize
)
if
nargin
<
8
figsize
=
[
19
295
1858
324
];
end
nbin
=
numel(
binedges
)-
1
;
N
=
nan(
1
,
nbin
);
for
i
=
1
:
nbin
N(
i
)=numel(find(
vec
>=
binedges(
i
)&
vec
<
binedges(
i
+
1
)));
if
label
==
1
Xlabel{
i
}=[num2str(binedges(
i
))
'
-
'
num2str(binedges(
i
+
1
)-
1
)];
end
end
figure(
'
Color
'
,
'
w
'
,
'
position
'
,
figsize
);
bar(
bincent
,
N
);
if
label
==
1
set(
gca
,
'
xticklabel
'
,
Xlabel
)
end
h
=
gca
;
xlabel(
xl
);
ylabel(
yl
);
set(findall(
gcf
,
'
-property
'
,
'
FontSize
'
),
'
FontSize
'
,
ftsz
)
grid
on
Back
|
FazBrowse Home
|
New Git URL