MATLAB把小数转化为百分数形式输出

function B=percent(A)
[m,n]=size(A);
B=cell(m, n);
A=round(A*10000)/100;
for i=1:m
  for j=1:n
            B{i, j} =[num2str(A(i,j)),%];
  end
end            

转自http://www.ilovematlab.cn/thread-43204-2-1.html

文章来自:https://www.cnblogs.com/litthorse/p/9384622.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3