init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
function [ pos ] = find_row( struc_x,N )
|
||||
%FIND_ROW 此处显示有关此函数的摘要
|
||||
% 此处显示详细说明
|
||||
sz=size(N,1); %获得a的行列数
|
||||
pos=[]; %待记录的位置
|
||||
for i=1:sz %sz(1)为a的行数
|
||||
if(isequal(N(i,:),struc_x))
|
||||
pos=[pos;i];
|
||||
end
|
||||
end
|
||||
% 将nei_grid反序
|
||||
struc_x_inv=[struc_x(2),struc_x(1)];
|
||||
for i=1:sz %sz(1)为a的行数
|
||||
if(isequal(N(i,:),struc_x_inv))
|
||||
pos=[pos;i];
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user