Scilab Function
eng - fr


return_size_scs_diagr2 - return the size of the graphic window of a scicos diagram

Library

Calling Sequence

txt = return_size_scs_diagr2(name,flag)

Parameters

File content


//Fonction qui retourne la taille d'un diagramme
//scicos spéciée dans un fichier SPECIALDESC
//Entrée name : nom du fichier (ex :'CONVOLGEN_f')
//       flag : html ou guide
//Sortie txt : nouvelle taille de la figure
function txt=return_size_scs_diagr2(name,flag)
if fileinfo(tex_path+lang+'/'+name+'/SPECIALDESC')<>[] then
 txt=[];
 tt=mgetl(tex_path+lang+'/'+name+'/SPECIALDESC');
 for i=1:size(tt,1)
    if flag=='html' then
      if strindex(tt(i),'size_scs_diagr_html')<>[] then
        ierror=execstr(tt(i),'eercatch');
        if ierror<>0 then
          printf("Format error in SPECIALDESC\n");
          break
        else
          txt=size_scs_diagr_html;
        end
      end
    elseif flag=='guide' then
      if strindex(tt(i),'size_scs_diagr_guide')<>[] then
        ierror=execstr(tt(i),'eercatch');
        if ierror<>0 then
          printf("Format error in SPECIALDESC\n");
          break
        else
          txt=size_scs_diagr_guide;
        end
      end
    end
 end

else
 txt=[];
end
endfunction

Authors

IRCOM Group Alan Layec