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

📄 psim1.m

📁 it is about window function in Matlab. Welcome to using it !
💻 M
字号:
function y=psim1(x,tol)
if nargin<2, tol=norm(x)*1000*eps; end
	x=x(:).' ;                       %  make sure input is a row 
	i=find(abs(x)<.99&abs(x)<tol) ;    %  find insignificant indices
	x(i)=zeros(1, length(i)) ;          %  set them to zero
	i=find(x~=0) ;                  %  find significant indices
	if isempty(i)
	     y=0 ;                     %  extreme case: nothing left!
	else
	    y=x(i(1) : length(x)) ;         %  start with first term
	end                           %  and go to end of polynomial

⌨️ 快捷键说明

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