⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mysetdiff.m

📁 gps“可用性”matlab代码 Matlab Algorithm Availability Simulation Tool
💻 M
字号:
function c = mysetdiff(a,b)%*************************************************************************%*     Copyright c 2001 The board of trustees of the Leland Stanford     *%*                      Junior University. All rights reserved.          *%*     This script file may be distributed and used freely, provided     *%*     this copyright notice is always kept with it.                     *%*                                                                       *%*     Questions and comments should be directed to Todd Walter at:      *%*     twalter@stanford.edu                                              *%*************************************************************************%% Same as setdiff.m.  Faster.% created: 2001 Apr 30 by Wyant Chanif (isempty(a))    c = [];    return;elseif (isempty(b))    c = unique(a);    return;enda = unique(a);b = unique(b);na=length(a);nb=length(b);if (size(a,2)==1),    a0=a';else    a0=a;endif (size(b,1)==1),    b=b';end%[arows,bcols] = meshgrid(a0,b);arows = repmat(a0,nb,1);bcols = repmat(b,1,na);temp = (arows==bcols);c=a(find(~sum(temp,1)));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -