MATLAB fprintf: Matrix
Is there any way? The only thing I found is publish to publish source-code. The only alternative I could think off was to programm the texts into the figure window and than export the whole figure to pdf.
Perhaps there's a better way to do it? I would recommend generating your figure with Matlab, outputting it to eps, then converting the figure to pdf using epstopdf.
Then embed your figure in a latex document and generate a pdf with pdflatex. The Matlab code to make the eps of the figure would be like this supposing your figure is figure 1 :. The first time you do this it's a pain, as you need to learn quite a bit about the Word Object Model; but once you've done it a couple of times it's very simple and quick, and you can achieve very professional results.
Learn more. Asked 8 years, 1 month ago. Active 8 years, 1 month ago. Viewed 9k times.
Sam Roberts I have written code that writes a LaTeX file and then calls pdflatex. This works quite well.
Note that if your problem is sufficiently simple, then you can use publish and add the option to not show the source code. I need a solution where no external tools and no external calla are needed thus I call my function and get a PDF. If you cannot rely on third-party programs, your only option seems to be publish which also allows some LaTeX commands to style text. Sam Roberts Sam Roberts Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown.
Subscribe to RSS
How to create micro-interactions with react-spring: Part 1. This week, StackOverflowKnows syntactic sugar, overfit or nah, and the…. Featured on Meta.
Thank you, Shog9. Thank you, Robert Cartaino.
Has Stack Exchange rescinded moderator access to the featured tag on Meta? How do the moderator resignations affect me and the community?
MATLAB fprintf Syntax