assert_expandvar — Expand variables so that they all have the same shape.
ovar1 = assert_expandvar ( ivar1 ) [ ovar1 , ovar2 ] = assert_expandvar ( ivar1 , ivar2 ) [ ovar1 , ovar2 , ovar3 ] = assert_expandvar ( ivar1 , ivar2 , ivar3 ) [ ovar1 , ovar2 , ovar3 , ovar4 ] = assert_expandvar ( ivar1 , ivar2 , ivar3 , ivar4 )
This function allows to expand input arguments of computationnal functions. If scalars are input, expand it to the size of other other variables.
If matrices are input, all must have the same shape: if not, an error is generated.