⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 is_sym.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
function truth=is_sym(A)
%  Determine if a matrix is symmetric)
%  CALL: truth=is_sym(A)
%   truth=1 (true) if A is symmetrical, truth=0 if not
%  Calls function is_sqr
truth=1;    % assume true
if is_sqr(A)
 s=size(A);
 if s > 1
  for row = 2:s
   for col = 1:row-1
     if A(row,col) ~=A(col,row)
      truth=0;
     end
    end
  end
 end
else
 truth=0;
end 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -