return_cos_name_cos - return title and path wrote in a scicos diagram file
[ttn,ttp] = return_cos_name_cos(name)
- name : string. path+name of the scicos diagram file
- ttn : string. title of scicos diagram file
- ttp : string. path of scicos diagram file
//return_cos_name_cos
//fonction qui retourne le titre et le
//chemin d'un diagramme scicos inscrit dans une liste scs
//Entrée name : chemin+nom du fichier cos
// ex : name=MODNUM+'/scs_diagr/dyna/chua/chua.cos'
//sortie tt : le nom du fichier cos
function [ttn,ttp]=return_cos_name_cos(name)
if fileinfo(name)<>[] then
//charge le ficier cos
load(name);
ttn=scs_m.props("title")(1)
ttp=scs_m.props("title")(2)
else
printf("Unable to find cos file");
end
endfunction
IRCOM Group
Alan Layec