www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ProductOfLogicalInputExample.m
%% Product of Logical Input % Create an array of logical values. A = [true false; true true] %% % Find the product of the elements in each column. B = prod(A) %% % The output has type |double|. class(B)