Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matlab_general
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
William Lövfors
matlab_general
Commits
233412b9
Commit
233412b9
authored
6 years ago
by
William Lövfors
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.liu.se:willo18/matlab_general
parents
854864db
49d0e816
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SBPOP PACKAGE/SBPD/tools/mexmodelhandling/auxiliary/CVODEMEX/lib/CVODEmex25.lib
+0
-0
0 additions, 0 deletions
...ls/mexmodelhandling/auxiliary/CVODEMEX/lib/CVODEmex25.lib
nanSEM.m
+6
-8
6 additions, 8 deletions
nanSEM.m
with
6 additions
and
8 deletions
SBPOP PACKAGE/SBPD/tools/mexmodelhandling/auxiliary/CVODEMEX/lib/CVODEmex25.lib
+
0
−
0
View file @
233412b9
No preview for this file type
This diff is collapsed.
Click to expand it.
nanSEM.m
+
6
−
8
View file @
233412b9
function
[
SEM
]
=
nanSEM
(
x
,
dim
,
e
)
%NANSEM Returns the answer to SEM = std(x)/sqrt(n
-e
), given a matrix x, either as a single
%value or column/row specified by 'dim'.
If n-e<=0, returns 0.
function
[
SEM
]
=
nanSEM
(
x
,
dim
)
%NANSEM Returns the answer to SEM = std(x)/sqrt(n), given a matrix x, either as a single
%value or column/row specified by 'dim'.
if
nargin
<
2
dim
=
0
;
end
if
nargin
<
3
e
=
0
;
end
if
dim
>
0
SEM
=
nanstd
(
x
,[],
dim
);
n
=
sum
(
~
isnan
(
x
),
dim
)
-
e
;
n
=
sum
(
~
isnan
(
x
),
dim
);
else
SEM
=
nanstd
(
reshape
(
x
,
1
,
numel
(
x
)));
n
=
sum
(
sum
(
~
isnan
(
x
)))
-
e
;
n
=
sum
(
sum
(
~
isnan
(
x
)));
end
n
(
n
<=
0
)
=
nan
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment