Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: Executing MuPad file in Matlab
Posted:
May 24, 2013 10:27 AM


"kamrul " <kamrul126@yahoo.com> wrote in message news:knn5me$1m4$1@newscl01ah.mathworks.com... > Can anyone please, help me to solve the following problem? > I wrote the following procedure in MuPad workspace: > > > myProc:=proc(a,b) > local m, n; > begin > m:=a; > n:=b; > q:=matrix(m,n): > myProc:=matrix(m,n): > for j from 1 to m do > for i from 1 to n do > y:=diff((1/(1+0.5*(1z))^(1/0.5))z^i,z$j); > q[j,i]:=y; > myProc[j,i]:=subs(q[j,i], z= 0); > end_for: > end_for: > end_proc: > > [for a=2 and b=3, results will be: > myProc= ([[0.7037037037, 0.2962962963, 0.2962962963], > [0.2962962963, 1.703703704, 0.2962962963]]) ] > > Now, I want to call this procedure in Matlab workspace and evaluate the > matrix "myProc" for different values of ?a? and ?b?. Can someone please, > tell me how can I do this in Matlab.
Try the functions listed here:
http://www.mathworks.com/help/symbolic/callingmupadfunctionsfrommatlab.html
 Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com



