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

📄 main.m

📁 the ultimate collection of optimization matlab code
💻 M
字号:
% Draw some cyclic graph.

n = 11;

S{1} = [-1,1];
S{2} = [-2,2];
S{3} = [-3,3];

k = 0;
for n=[11 12]
for s = 1:3
    
    k = k+1;
    SS = S{s};
    subplot(2,3,k);
    [A,xy] = gen_cyclic_graph(n,SS);
    gplot( A,xy, 'k.-' );
    axis([-1,1,-1,1]);
    axis square;
    axis off;
    str = [];
    for i=1:length(SS)
        str = [str, sprintf('%d', SS(i))];
        if i~= length(SS)
            str = [str, ','];
        end
    end
    title( sprintf('G=Z/%dZ, S=[%s]', n, str) );
    
end
end

⌨️ 快捷键说明

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