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
时间: 2024-10-13 14:27:08