matplot.m

来自「matlab6矩阵微分工具 matlab6矩阵微分工具」· M 代码 · 共 16 行

M
16
字号
%  The script file matplot.m plots the characteristic curves of%  Mathieu's equation using a 32x32 Fourier differentiation matrix.%  J.A.C. Weideman, S.C. Reddy 1998[x, D] = fourdif(32,2); for q  = 0.1:0.1:12                         % For loop over q values     a = eig(2*q*diag(cos(2*x))-D);         % Compute eigenvalues (period 2 pi)plot(q+i*a,'o','MarkerSize',2); hold on;endaxis([0 12 -10 30])                         % Zoom inxlabel('q','FontSize',16)ylabel('a','FontSize',16)

⌨️ 快捷键说明

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