When an issue of fact is joined upon an indictment or information, the defendant may have any material witness, residing out of the state, examined in his behalf, as prescribed in this chapter, and not otherwise.
(Amended by Stats. 1980, Ch. 676, Sec. 253.)