Download CIFTI_read_save/@xmltree/move.m from cindyhfls/fcMRI-VAE: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/cindyhfls/fcMRI-VAE/resolve/4323815a2cc1151353f582e9216ad3c2a366ed12/CIFTI_read_save/%40xmltree/move.m
- Command line
-
hf download hf://cindyhfls/fcMRI-VAE@4323815a2cc1151353f582e9216ad3c2a366ed12/CIFTI_read_save/@xmltree/move.m
-
curl -L -o move.m https://huggingface.co/cindyhfls/fcMRI-VAE/resolve/4323815a2cc1151353f582e9216ad3c2a366ed12/CIFTI_read_save/%40xmltree/move.m
786 Bytes
| function tree = move(tree,uida, uidb) | |
| % XMLTREE/MOVE Move (move a subtree inside a tree from A to B) | |
| % | |
| % tree - XMLTree object | |
| % uida - initial position of the subtree | |
| % uidb - parent of the final position of the subtree | |
| %__________________________________________________________________________ | |
| % | |
| % Move a subtree inside a tree from A to B. | |
| % The tree parameter must be in input AND in output. | |
| %__________________________________________________________________________ | |
| % Copyright (C) 2002-2015 http://www.artefact.tk/ | |
| % Guillaume Flandin | |
| % $Id: move.m 6480 2015-06-13 01:08:30Z guillaume $ | |
| %error(nargchk(3,3,nargin)); | |
| p = tree.tree{uida}.parent; | |
| tree.tree{p}.contents(find(tree.tree{p}.contents==uida)) = []; | |
| tree.tree(uidb).contents = [tree.tree(uidb).contents uida]; | |