MATLAB的小小小命令

h = waitbar(x,'message')
waitbar(x,'message','CreateCancelBtn','button_callback')
waitbar(x,'message',property_name,property_value,...)
waitbar(x)
waitbar(x,h)
waitbar(x,h,'updated message')

example:
h = waitbar(0,'Please wait...');
steps = 1000;
for step = 1:steps
    % computations take place here
    waitbar(step / steps)
end
close(h) 

这是个让等待不会太无聊的小命令。

 

intersect(A,B) 矩阵求交

setxor(A,B)求 异或

setdiff(A,B) 求差集

具体help查看详情

posted @ 2018-03-16 20:57  兔子大叔  阅读(299)  评论(0编辑  收藏  举报