design.m

来自「This is matlab sourcecode for measuring 」· M 代码 · 共 8 行

M
8
字号
function y=design(x)
% DESIGN 
% DESIGN(x) creates a matrix of 1 and 0 corresponding to x
% y: Rows(x) x Max(x)
  i=1:1:rows(x);
  k=ones(rows(x),1);
  s=sparse(i,x,k,rows(x),max(x));
  y=full(s);

⌨️ 快捷键说明

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