Is there a way i can attatch MATLAB graphs onto the Latex file?
Homework Equations
The Attempt at a Solution
I copied and pasted it onto paint then saved it as .jpg but i was wondering if there's a way i could attatch the original graph without copying and pasting it onto paint.
Is there a way i can attatch MATLAB graphs onto the Latex file?
Homework Equations
The Attempt at a Solution
I copied and pasted it onto paint then saved it as .jpg but i was wondering if there's a way i could attatch the original graph without copying and pasting it onto paint.
Thank you
Sara, here's the magic:
MATLAB > SVG > PDF > Latex
1) You need to download "Scalable Vector Graphics (SVG) Export of Figures" from MATLAB Central.
b. Extract zip file into the MATLAB folder you will use as a current directory (i.e. where your M-files are located)
c. Simply type "plot2svg" in command window or M-file, a GUI will pop up and ask you where to save the figure as an SVG file. Of course, you need a plot( ) command just before this step to generate a figure!
Note: svgs do not have resolution constraints, like true pdfs.