Changeset 143 for aedes_resviewer.m


Ignore:
Timestamp:
Oct 13, 2010, 10:18:52 AM (9 years ago)
Author:
tjniskan
Message:
  • Fixed a bug in detecting Matlab version in aedes_resviewer.m, which

resulted in a crash in Matlab R2010a and newer.

  • Fixed a bunch of warnings that were generated in aedes_juigetfiles.m with newer Matlab

versions

M aedes_resviewer.m
M aedes_revision.m
M aedes_juigetfiles.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_resviewer.m

    r133 r143  
    407407 
    408408  % Check Matlab version since uitable properties have changed in R2008a
    409   v=version;
    410   v=str2num(v(1:3));
    411   Dat.MatlabVersion = v;
    412   if Dat.MatlabVersion>=7.6
     409  Dat.MatlabVersion = aedes_getmatlabversion;
     410  if Dat.MatlabVersion>=7.06
    413411        set(H.RESTABLE,'Enable','on','visible','off');
    414412  else
     
    770768 
    771769  % Clear restable
    772   if Dat.MatlabVersion>=7.6
     770  if Dat.MatlabVersion>=7.06
    773771        set(H.RESTABLE,'data',[])
    774772        set(H.RESTABLE,'Data',ResTable,...
     
    820818  Dat.Res = [];
    821819  Dat.ReFileName = '';
    822   if Dat.MatlabVersion>=7.6
     820  if Dat.MatlabVersion>=7.06
    823821        set(H.RESTABLE,'visible','off',...
    824822          'Data',[]);
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008