firstnonsingleton — Finds first dimension which is not 1
[dim]=firstnonsingleton(A[,opt])
first dimension of A which is not 1
a variable of any Scilab data type
a character string giving the type of output we want
returned value is a numerical value
returned value is a character string if possible ("r" instead of 1 and "c" instead of 2)
This function is used by mfile2sci
to emulate Matlab behavior under Scilab, particularly
for functions which treat the values along the first non-singleton dimension of A in Matlab
while in Scilab they treat all values of A.