www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/DetermineWhetherMatrixContainsAllRealValuesExample.m
%% Determine Whether Matrix Contains All Real Values %% % Define a 3-by-4 matrix, |A|. A = [7 3+4i 2 5i;... 2i 1+3i 12 345;... 52 108 78 3]; %% % Determine whether the array is real. tf = isreal(A) %% % Since |A| contains complex elements, |isreal| returns false.