function [res] = isknot0(x, s) % обычная одномерная решетка с шагом s x=double(x); if mod(x,s)==0 res=1; else res=0; end