Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COCOS
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Upgrade to latest version (17.8.4) is in progress. No downtime is expected.
Show more breadcrumbs
SPC
COCOS
Commits
71243e93
Commit
71243e93
authored
3 years ago
by
Olivier Sauter
Browse files
Options
Downloads
Patches
Plain Diff
allow matlab comment style in csv file
parent
801fbe89
No related branches found
Branches containing commit
Tags
crpptbx-9.6.0-deployed-crpptbx-release-v4.1.9
crpptbx-release-v4.1.9
Tags containing commit
1 merge request
!11
Add constraints subtree for equilibrium ids
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/ids_generic_cocos_nodes_transformation_symbolic.m
+3
-1
3 additions, 1 deletion
matlab/ids_generic_cocos_nodes_transformation_symbolic.m
with
3 additions
and
1 deletion
matlab/ids_generic_cocos_nodes_transformation_symbolic.m
+
3
−
1
View file @
71243e93
...
...
@@ -114,7 +114,9 @@ end
[
apath
]
=
fileparts
(
which
(
'cocos_transform_coefficients'
));
table_filename
=
fullfile
(
apath
,
'ids_cocos_transformations_symbolic_table.csv'
);
if
exist
(
table_filename
,
'file'
)
[
leaf_name
,
label_transformation
,
transformation_expression
,
leaf_name_matlab
,
length_i
,
length_j
]
=
textread
(
table_filename
,
'%s%s%s%s%s%s'
,
'delimiter'
,
';'
,
'headerlines'
,
2
);
% with commentstyle no need for 'headerlines',2 so can use matlab comment in middle
[
leaf_name
,
label_transformation
,
transformation_expression
,
leaf_name_matlab
,
length_i
,
length_j
]
=
textread
(
table_filename
,
'%s%s%s%s%s%s'
,
...
'delimiter'
,
';'
,
'commentstyle'
,
'matlab'
);
else
warning
([
'table of transformation not available in file: '
table_filename
])
return
...
...
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