Skip to main content
1-Visitor
August 17, 2011
Solved

Matlab data to Mathcad

  • August 17, 2011
  • 1 reply
  • 23109 views

Hi guys. I have an important question. I have a my full program of OFDM and a laser to modulate it in Matlab. its optical communication.

Now I have a solid complicated nonlinear Schrodinger equation that defines my optical fibre. To program it in matlab, it might take ages. Cause it concerns partial derivative and so on.

so I thought may be I can write that equation in Mathcad, and get the data across the laser to Mathcad. Do the math and get the values back to Matlab.

Is that possible?

thank you. If you have any suggestion on this or perhaps any tutorial, please share it with me. Thank you very much!

Best answer by VladimirN

Hello!

You can find a link to the guide "Developer's Reference" in "Mathcad Help" (F1 key):

Mathcad_Help.jpg

Or use the direct link: C:\Program Files\Mathcad\Mathcad 15\doc\HELP_EN\DevRef\DevRef.htm

Developer

P.S. Also look in the Help topic "MATLAB Component". Quote: "In addition to importing and exporting MATLAB data files using the File Input, File Output, or Data Table components, you can also use the MATLAB component to execute MATLAB scripts using data from your Mathcad worksheet, and return the results to Mathcad."

MATLAB_Component.jpg

1 reply

19-Tanzanite
August 17, 2011
so I thought may be I can write that equation in Mathcad, and get the data across the laser to Mathcad. Do the math and get the values back to Matlab.

Is that possible?

Yes. You need to call Mathcad from Matlab using the automation interface. See the Developers Reference under the help menu.

OpticGuy1-VisitorAuthor
1-Visitor
August 17, 2011

Hi Richard. Thanks for your reply. Where can I find this developers reference? Please advice. Thank you.

19-Tanzanite
August 17, 2011

Look under the help menu in Mathcad.