当前目录中包含以下文件及文件夹: startup.m win64/ … 判断当前目录中是否存在startup.m文件 if ~exist('startup.m','file')==0 error(display('no startup.m file')); end 判断当前目录中是否存在win64文件夹,若不存在则创建 if ~exist('win64','dir')==0 mkdir('win64'); end
#include <iostream> #include <ctime> #include <GL/glut.h> #include <math.h> #include <vector> using namespace std; struct Pos { int x; int y; }; struct Edge { int x1, x2; int y1, y2; int vx; int vy; int a, b, c; }; struct Pol
matlab判断2个数组中不同元素--setdiff c = setdiff(A, B) 返回在A中有,而B中没有的值,结果向量将以升序排序返回.在集合论中,c = A - B.A和B也可以是字符串细胞数组.c = setdiff(A, B, 'rows')当A和B是具有相同列数的矩阵时,返回A中有而B中没有的那些行. 原载:http://blog.csdn.net/szv123_rier/article/details/8078905