Files
Earthquake/num2str_new.m
2021-06-12 00:26:34 +03:00

9 lines
134 B
Matlab

function text=num2str_new(x,N)
text=num2str(x);
if length(text)<N
for i=1:N-length(text)
text=['0' text];
end
end
end