Is there a way to transport a MATLAB plot into OriginLab?
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hey guys,
MATLAB has a large variety of mathematical functions for studying data. Origin, on the other hand, has a large variety of tools to plot data, and is used and accepted by the scientific community as a plotting software.
I was wondering if someone could tell me a way to first code-up and graph a problem in MATLAB, and then transport the graph itself to Origin, using a peice of MATLAB code?
I checked out the website: http://www.originlab.com/index.aspx?go=Support/VideoTutorials&ss=chm&pid=1778 but they don't mention a way to import/export graphs -- only data, which I don't wish to do. It would be ideal if I could transport the graph without hurting any of the scale bars, axes limits and axes scales.
Thank you so much!
Aarat
1 Kommentar
dpb
am 18 Jun. 2017
Bearbeitet: dpb
am 18 Jun. 2017
Almost certainly, "no", not a Matlab figure itself; they're totally independent graphing toolsets that have no klew about how to talk to each other.
You can use the MATLAB console inside Origin it appears to do the work but you'll have to return the results and do the graphing internally if you want the graph in Origin. That ain't the answer you were wanting, but after reading the doc I'm more convinced than was when started (which was also that there's just no way that's going to work).
ADDENDUM It really is importing data, but I presume there would be a way if you were to save the Matlab figure as .jpg or somesuch there is a way in Origin to read and display that (altho I didn't search doc to see). Of course, that would display only the image, wouldn't be the figure itself and is, strictly speaking, data transfer so doesn't meet the criterion, granted.
Antworten (1)
Jan
am 18 Jun. 2017
It would not be meaningful to "export a plot" from Matlab to Origin, because plots in Matlab depend on the software. They include the automatic scaling and limits, which is applied e.g. when you print a diagram. This cannot work "imported in Origin".
All you could do is export a diagram as PDF or pixel image and insert it in Origin, but this would not use the power of Origin to visualize the data.
If you want to plot the data in Origin, export the data from Matlab, import them in Origin and plot them there.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!