1

I am trying to convert the following summation into a Matlab function through MuPAD:

                                double sum equation

This is what I have done so far...

  1. In Matlab, enter notebook_handle = mupad;

  2. In MuPAD I had formulated the above equation to be : C = sum(sum(((Xkit)*#P1k), #k=#1..#D), #i=#1..#t-1) Note: I am equating the summation to a variable C

  3. Equate the above expression in MuPAD

  4. In Matlab Command window enter : C = getVar(notebook_handle,'C')

I am closely following the documentation (Create MATLAB Functions from MuPAD Expressions). I am able to formulate the example given easily but not the one I am trying to solve.

My guess is that there is something wrong with Step 2?

horchler
  • 18,384
  • 4
  • 37
  • 73

0 Answers0