If I understand your question correctly Z1,Z2, Z3 are effectivly external inputs. This means you should be able to append them to U and absorb the contribution of R with respect to these inputs into the B matrix.
-craig
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!