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查看详情

原文地址:https://www.cnblogs.com/chri330dj/p/8585196.html