netgraph_concentrations.m

来自「%The Metabolic Networks Toolbox contains」· M 代码 · 共 36 行

M
36
字号
% netgraph_concentrations(network,S,J,flag_text,options)%% display concentrations and (optionally) fluxesfunction netgraph_concentrations(network,S,J,flag_text,options)if isempty(S),S=0; endif length(S)==1,S=S*ones(size(network.metabolites)); endif ~exist('flag_text','var'), flag_text=0; endif flag_text,  if exist('J','var'),if length(J)==1,J=J*ones(size(network.actions)); end    opt = struct('metvalues',S,'actvalues',J,'arrowvalues',J,'arrowstyle','fluxes','metprintvalues',1,'actprintvalues',1);  else    opt = struct('metvalues',S,'actvalues',J,'arrowstyle','none',' metprintvalues',1,'actprintvalues',1);  endelse,  if exist('J','var'),    if length(J)==1,J=J*ones(size(network.actions)); end    opt = struct('metvalues',S,'actvalues',J,'arrowvalues',J,'arrowstyle','fluxes','metprintnames',0,'actprintnames',0);  else    opt = struct('metvalues',S,'arrowstyle','none','metprintnames',0);  endendif exist('options','var'),f=fieldnames(options);for it=1:length(f),  opt = setfield(opt,f{it},getfield(options,f{it}));endendnetgraph_draw(network,opt);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?