📄 findparent.m
字号:
function nodeOut = findParent(nodeRoot, nodeIn)
if ~is_first_in_second(nodeIn.curve, nodeRoot.curve)
nodeOut = 0;
return
end
if isempty(nodeRoot.children)
nodeOut = nodeRoot;
return
end
for iChild = 1:length(nodeRoot.children)
children = nodeRoot.children;
nodeOut = findParent(children(iChild), nodeIn);
if nodeOut ~= 0
return
end
end
nodeOut = nodeRoot;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -