📄 netgraph_remove.m
字号:
function [network,keep_tot,keep_actions_tot] = netgraph_remove(network) n_met=length(network.metabolites); netgraph_draw(network); keep_tot=1:length(network.metabolites); keep_actions_tot=1:length(network.actions); cont = 1; while cont==1, [x_old,y_old,button] = ginput(1); dist= sum( (repmat([x_old;y_old],1,size(network.graphics_par.x,2))-network.graphics_par.x).^2); [dum,i]=min(dist); index=i(1); switch button case 3, cont = 0; otherwise, if index<=n_met, [network,keep,keep_actions]=network_remove(network,index); else [network,keep,keep_actions]=network_remove_action(network,index-n_met); end keep_tot=keep_tot(keep); keep_actions_tot=keep_actions_tot(keep_actions); n_met=length(keep); end netgraph_draw(network);end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -