First commit
This commit is contained in:
9
myformat.m
Normal file
9
myformat.m
Normal file
@@ -0,0 +1,9 @@
|
||||
function text=myformat(x,n)
|
||||
%% By L_DelOff
|
||||
% text=myformat(x,n)
|
||||
% Добавляет нули перед числом, например '01'=myformat(1,2)
|
||||
text=num2str(x);
|
||||
while length(text)<n
|
||||
text=['0' text];
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user