Skip to content
Snippets Groups Projects
Commit 71243e93 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

allow matlab comment style in csv file

parent 801fbe89
No related branches found
1 merge request!11Add constraints subtree for equilibrium ids
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment