0
$\begingroup$

I have a 400x1 vector T in Matlab which is a function of another 400x1 vector E. I have these two vectors. I had a few questions :

  1. How do I transfer these two vectors to Mathematica

  2. I want to write T as a function of E so that I can use NIntegrate to integrate T(E) over E with some tweaking. How do I do that?

$\endgroup$
  • 1
    $\begingroup$ How do I do that? you can try matlink.org package also see this is-it-possible-to-export-the-equations-from-mathematica-to-matlab with link to ToMatlab package you can use. You can also save your matlab data to .mat file, and import it from Mathematica. see format/MAT.html $\endgroup$ – Nasser Mar 13 '18 at 3:53
  • $\begingroup$ But even if I transfer the vector, how do I make it as function of E, so that I can use NIntegrate? $\endgroup$ – Indeterminate Mar 13 '18 at 3:58
  • $\begingroup$ even if I transfer the vector, how do I make it as function of E, so that I can use NIntegrate I do not know how to do this, since description is not clear to me, may be someone else would know and help. $\endgroup$ – Nasser Mar 13 '18 at 4:01
  • $\begingroup$ do you want to make an interpolation of the function T[E] from the two vectors and integrate that function? Then you should look at what Interpolation can do for you... $\endgroup$ – Albert Retey Mar 13 '18 at 9:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.