Changeset 147


Ignore:
Timestamp:
Nov 30, 2010, 2:54:46 PM (10 years ago)
Author:
gostiaux
Message:

cleaning code for the detection of matlab version.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r137 r147  
    788788    save (profil_perso,'RootPath','-append'); %store the root name for future opening of uvmat
    789789else
    790     txt=ver;
    791     Release=txt(1).Release;
     790    txt=ver('MATLAB');
     791    Release=txt.Release;
    792792    relnumb=str2double(Release(3:4));
    793793    if relnumb >= 14
  • trunk/src/civ_3D.m

    r72 r147  
    671671    save (profil_perso,'RootPath','-append'); %store the root name for future opening of uvmat
    672672else
    673     txt=ver;
    674     Release=txt(1).Release;
     673    txt=ver('MATLAB');
     674    Release=txt.Release;
    675675    relnumb=str2num(Release(3:4));
    676676    if relnumb >= 14
  • trunk/src/get_field.m

    r144 r147  
    12141214        save(profil_perso,'get_field_fct','-append')
    12151215   else
    1216         txt=ver;
    1217         Release=txt(1).Release;
    1218         relnumb=str2num(Release(3:4));
     1216     txt=ver('MATLAB');
     1217    Release=txt.Release;
     1218       relnumb=str2num(Release(3:4));
    12191219        if relnumb >= 14
    12201220            save(profil_perso,'get_field_fct','-V6')
     
    14331433    save (profil_perso,'MenuFile_1','MenuFile_2','MenuFile_3','MenuFile_4', 'MenuFile_5','-append'); %store the file names for future opening of uvmat
    14341434else
    1435     txt=ver;
    1436     Release=txt(1).Release;
     1435    txt=ver('MATLAB');
     1436    Release=txt.Release;
    14371437    relnumb=str2double(Release(3:4));
    14381438    if relnumb >= 14
  • trunk/src/griddata_uvmat.m

    r116 r147  
    22%adapt the input of the matlab function griddata to the appropriate version of Matlab
    33function ZI = griddata_uvmat(X,Y,Z,XI,YI)
    4 txt=ver;
    5 Release=txt(1).Release;
     4txt=ver('MATLAB');
     5Release=txt.Release;
    66relnumb=str2num(Release(3:4));
    77if relnumb >= 20
  • trunk/src/plot_field.m

    r131 r147  
    447447        if isempty(hlegend)
    448448            hlegend=legend(legend_str);
    449             txt=ver;
    450             Release=txt(1).Release;
    451             relnumb=str2num(Release(3:4));
     449            txt=ver('MATLAB');
     450            Release=txt.Release
     451            relnumb=str2num(Release(3:4));% should be changed to Version for better compatibility
    452452            if relnumb >= 14
    453453                set(hlegend,'Interpreter','none')% desable tex interpreter
     
    472472    end
    473473    htitle=title(title_str);
    474     txt=ver;
    475     Release=txt(1).Release;
     474    txt=ver('MATLAB');
     475    Release=txt.Release;
    476476    relnumb=str2num(Release(3:4));
    477477    if relnumb >= 14
     
    762762            y_cont=AY(1):-sizpy:AY(end); % pixel x coordinates for image display
    763763           % axes(haxes)% set the input axes handle as current axis
    764             txt=ver;%version of Matlab
    765             Release=txt(1).Release;
     764    txt=ver('MATLAB');
     765    Release=txt.Release;
    766766            relnumb=str2double(Release(3:4));
    767767            if relnumb >= 14
  • trunk/src/series.m

    r118 r147  
    284284        save (profil_perso,'MenuFile_1','MenuFile_2','MenuFile_3','MenuFile_4', 'MenuFile_5','-append'); %store the file names for future opening of uvmat
    285285    else
    286         txt=ver;
    287         Release=txt(1).Release;
     286    txt=ver('MATLAB');
     287    Release=txt.Release;
    288288        relnumb=str2num(Release(3:4));
    289289        if relnumb >= 14
     
    393393        save (profil_perso,'MenuFile_1','MenuFile_2','MenuFile_3','MenuFile_4', 'MenuFile_5','-append'); %store the file names for future opening of uvmat
    394394    else
    395         txt=ver;
    396         Release=txt(1).Release;
     395    txt=ver('MATLAB');
     396    Release=txt.Release;
    397397        relnumb=str2num(Release(3:4));
    398398        if relnumb >= 14
     
    740740    save (profil_perso,'RootPath','SubDir','RootFile','NomType', '-append'); %store the root name for future opening of uvmat
    741741else
    742     txt=ver;
    743     Release=txt(1).Release;
     742    txt=ver('MATLAB');
     743    Release=txt.Release;
    744744    relnumb=str2num(Release(3:4));
    745745    if relnumb >= 14
     
    16421642        save(profil_perso,'series_fct','-append')
    16431643   else
    1644         txt=ver;
    1645         Release=txt(1).Release;
     1644    txt=ver('MATLAB');
     1645    Release=txt.Release;
    16461646        relnumb=str2num(Release(3:4));
    16471647        if relnumb >= 14
  • trunk/src/uvmat.m

    r144 r147  
    473473    save (profil_perso,'MenuFile_1','MenuFile_2','MenuFile_3','MenuFile_4', 'MenuFile_5','-append'); %store the file names for future opening of uvmat
    474474else
    475     txt=ver;
    476     Release=txt(1).Release;
     475    txt=ver('MATLAB');
     476    Release=txt.Release;
    477477    relnumb=str2double(Release(3:4));
    478478    if relnumb >= 14
     
    10121012    save (profil_perso,'MenuFile_1','MenuFile_2','MenuFile_3','MenuFile_4', 'MenuFile_5','-append'); %store the file names for future opening of uvmat
    10131013else
    1014     txt=ver;
    1015     Release=txt(1).Release;
     1014    txt=ver('MATLAB');
     1015    Release=txt.Release;
    10161016    relnumb=str2num(Release(3:4));
    10171017    if relnumb >= 14
Note: See TracChangeset for help on using the changeset viewer.