@@ -589,7 +589,7 @@ function validate(obj)
589589
590590 % check if there is tiledlayout
591591 try
592- tiledLayoutStruct = get( obj .State .Figure .Handle .Children ) ;
592+ tiledLayoutStruct = obj .State .Figure .Handle .Children ;
593593 isTiledLayout = strcmp(tiledLayoutStruct .Type , ' tiledlayout' );
594594 catch
595595 isTiledLayout = false ;
@@ -600,7 +600,7 @@ function validate(obj)
600600
601601 if isempty(ax )
602602 try
603- ax = get( obj .State .Figure .Handle , ' Children' ) ;
603+ ax = obj .State .Figure .Handle . Children ;
604604 catch
605605 ax = gca ;
606606 end
@@ -648,7 +648,7 @@ function validate(obj)
648648
649649 % add title
650650 try
651- obj .State .Text(a ).Handle = get( ax(axrev ), ' Title' ) ;
651+ obj .State .Text(a ).Handle = ax(axrev ). Title;
652652 obj .State .Text(a ).AssociatedAxis = handle(ax(axrev ));
653653 obj .State .Text(a ).Title = true ;
654654 catch
@@ -884,12 +884,12 @@ function validate(obj)
884884 % ----UPDATE FIGURE OPTIONS----%
885885 function obj = updateFigureVisible(obj ,src ,event )
886886 % update PlotOptions.Visible
887- obj.PlotOptions.Visible = get( obj .State .Figure .Handle , ' Visible' ) ;
887+ obj.PlotOptions.Visible = obj .State .Figure .Handle . Visible ;
888888 end
889889
890890 function obj = updateFigureName(obj ,src ,event )
891891 % update PlotOptions.Name
892- obj.PlotOptions.FileName = get( obj .State .Figure .Handle , ' Name' ) ;
892+ obj.PlotOptions.FileName = obj .State .Figure .Handle . Name ;
893893 end
894894
895895 % ----UPDATE PLOT OPTIONS----%
0 commit comments