function picreactr
% function picreactr
%
% This displays a picture illustrating use of the command REACTR.
% Note that this will only run in Matlab versions that support the WEB
% command (Matlab 5.0 and above).  Otherwise, visit the following web site:
% http://www.owlnet.rice.edu/~ceng301/5.html#5.7
%
% REACTR calculates the rates of two reactions for a given conversion and
% selectivity.  Once the reaction rates are determined, REACT can then be
% used to determine the flows.  PICREACTEN demonstrates pictorially the
% example given in the help for REACTEN.  See REACT, PICREACT, IREACTRF,
% IREACTRX
%
% Example: >> rv=reactr(4,1,1,2,0.25,0.8,1);
%          >> react(rv,1,2)
%
% Explanation:
%         Since reactions are being dealt with, you MUST use moles.
%         The primary reactant has index 4
%         The primary product has index 1
%         The main reaction's index is 1
%         The competing reaction's index is 2
%         The conversion of primary reactant is 0.25
%         The selectivity to primary product is 0.8
%         The inlet stream's index is 1
%         The exit stream's index is 2
%
% Comments/Picture: TYLC, ACP
% Comments/Picture/Program: ADD
% Last updated:  May, 1997

c=version;
d = c(1:3);
e = str2num(d);
if e<5.0
  disp('Please use browser to visit:')
  disp(' http://www.owlnet.rice.edu/~ceng301/5.html#5.7')
  return
end
d = web('http://www.owlnet.rice.edu/~ceng301/5.html#5.7');
if d!=0
  error('Error with web browser, go to http://www.owlnet.rice.edu/~ceng301/5.html#5.7');
end
