Man Scilab

firstnonsingleton
M2SCI Function

firstnonsingleton - Finds first dimension which is not 1

Calling Sequence

[dim]=firstnonsingleton(A[,opt])

Parameters

Description

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.

Examples


A = [1 2 3;4 5 6];
// Scilab max
M = max(A)
// Matlab max emulation
M = max(A,firstnonsingleton(A))
 
  

Authors

V.C.

Back