Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CRP Toolbox for MATLAB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Norbert Marwan
CRP Toolbox for MATLAB
Commits
9ed65b9f
Commit
9ed65b9f
authored
14 years ago
by
marwan
Browse files
Options
Downloads
Patches
Plain Diff
some minor bugs in output and test of time series lengths (of x and y)
parent
d030c107
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crp2.m
+18
-7
18 additions, 7 deletions
crp2.m
with
18 additions
and
7 deletions
crp2.m
+
18
−
7
View file @
9ed65b9f
...
...
@@ -86,6 +86,9 @@ function xout=crp2(varargin)
% $Revision$
%
% $Log$
% Revision 5.17 2009/03/24 08:31:17 marwan
% copyright address changed
%
% Revision 5.16 2008/07/02 11:59:22 marwan
% new norms: DTW and Levenshtein
% bug fix for logical data vectors
...
...
@@ -309,6 +312,9 @@ if isnumeric(varargin{1}) % read commandline input
error
([
'Too less data'
,
10
,
...
'Either too much NaN or the number of columns in the vectors do not match.'
])
end
if
(
size
(
x
,
2
)
~=
size
(
y
,
2
))
error
([
'Matrix dimensions must agree.'
])
end
ds
=
eye
(
m
);
else
% read input from the GUI
...
...
@@ -436,6 +442,8 @@ if nogui>0
tx
(
8
)
=
{
'order matrix'
};
tx
(
9
)
=
{
'order pattern'
};
tx
(
10
)
=
{
'distance plot'
};
tx
(
11
)
=
{
'distance plot'
};
tx
(
12
)
=
{
'distance plot'
};
disp
([
'use method: '
,
char
(
tx
(
method
))]);
if
nonorm
==
1
,
disp
(
'normalize data'
);
else
disp
(
'do not normalize data'
);
end
end
...
...
@@ -1697,13 +1705,16 @@ set(0,'ShowHidden','Off')
%if 0
catch
try
,
if
nogui
==
0
for
i
=
1
:
length
(
obj
.
enable
),
set
(
obj
.
children
(
i
),
'Enable'
,
obj
.
enable
{
i
});
end
set
(
h
(
1
),
'String'
,
'Apply'
,
...
'ToolTip'
,
'Starts the computation - be patient.'
,
...
'Callback'
,
'crp compute'
)
setptr
([
hCRP
,
hCtrl
],
'arrow'
)
end
,
end
try
if
nogui
==
0
for
i
=
1
:
length
(
obj
.
enable
),
set
(
obj
.
children
(
i
),
'Enable'
,
obj
.
enable
{
i
});
end
set
(
h
(
1
),
'String'
,
'Apply'
,
...
'ToolTip'
,
'Starts the computation - be patient.'
,
...
'Callback'
,
'crp compute'
)
setptr
([
hCRP
,
hCtrl
],
'arrow'
)
end
if
nargout
,
xout
=
NaN
;
end
end
z
=
whos
;
x
=
lasterr
;
y
=
lastwarn
;
in
=
varargin
{
1
};
print_error
(
'crp2'
,
z
,
x
,
y
,
in
,
mflag
,
action
)
try
,
set
(
0
,
props
.
root
),
end
...
...
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