Question: Calling two different Matrix from a saved procedure file

Hi;

I wrote a procedure. It includes two matrices which are H and psi. I highlighted the matrices in the following code.
I saved the file by using the following code. 

save newprocedure, "file.m";

 

In the other worksheet, I want to call and use these two matrices. 

How can I do?


You can find the following code for details.

procedure.mw

In the other worksheet; I can call one of these matrices, but I can' t call both of them.

restart;
read "C:\\Users\\PC\\Desktop\\file.m";
newprocedure(2);


 

Please Wait...