Changeset 24835


Ignore:
Timestamp:
05/09/20 15:11:07 (5 years ago)
Author:
Eric.Larour
Message:

CHG: better code style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/qmu/expandvariables.m

    r13646 r24835  
    55for i=1:length(fnames)
    66
    7 %  for linear constraints, just copy
    8 
    9     if isa(variables.(fnames{i}),'linear_inequality_constraint') || ...
    10        isa(variables.(fnames{i}),'linear_equality_constraint'  )
     7               
     8    if isa(variables.(fnames{i}),'linear_inequality_constraint') || isa(variables.(fnames{i}),'linear_equality_constraint'  )
     9                %for linear constraints, just copy
    1110        dvar.(fnames{i})=variables.(fnames{i});
    1211
    13 %  for variables, call the setup function
    14 
    1512    else
     13                %for variables, call the setup function
    1614        fhandle=str2func([class(variables.(fnames{i})) '.empty']);
    1715        dvar.(fnames{i})=fhandle();
Note: See TracChangeset for help on using the changeset viewer.