mplot.m

来自「这是盲信号的代码 都已经通过编译了 做这方面的同仁可以参考一下 我觉得蛮惯用的」· M 代码 · 共 31 行

M
31
字号
function mplot(s)
%
%
[dim,sample]=size(s);
if dim>sample
    s=s';
    [dim,sample]=size(s);
end
if dim>6
    error('dim can not more than six');
end

for i=1:dim
    subplot(dim,1,i);
    plot(s(i,:));
    axis('tight');
    set(gca,'XTick',[]);
    if i==1
        xlabel('y1');
    end
    if i==2
        xlabel('y2');
    end
    if i==3
        xlabel('y3');
    end
    if i==4
        xlabel('y4');
    end
end

⌨️ 快捷键说明

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