9 lines
134 B
Matlab
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
|