Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Functions

all

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Returns 1 if all of the specified matrix entries are nonzero and returns 0 otherwise.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = all(A);

Will return 1 if all of the A matrix entries are nonzero and will return 0 otherwise.

out = all(A,n);

n is an optional parameter to analyze entries in a specific dimension

 

Example

The following is a simple example showing how to use this command.

a = [1,4,3,0.5];

b = [1,3;6,0];

?all(a);

?all(b);

result:

1

result: 

0  

 

?all(b,2);

result: 

1  

0   

 

 

See Also

any, almostequal

Copyright Lumerical Inc. | Privacy | Site Map