www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ReplaceElementsofMatrixExample.m
%% Replace Elements of Matrix %% % Create a matrix. A = magic(4) %% % Replace all values greater than or equal to |9| with the value |10|. A(A >= 9) = 10 %% % The result is a new matrix whose largest element is |10|.