Publish to word, matlab code is not in cells

  • Follow


Hello

consider the following trivial example.

 t=1:0.1:10
 x=sin(t)
 plot(t,x)

when publising this m file as a word document I expected the matlab commands ot be in cells, so that using the matlab notebook I could evaluate them. However that was not the case. Even worse when opening the word document the menu entry notebook was not there. Only when I opened a new file from the matlab shell via the notebook command then word opened with displaying the notebook entry.

Is the word or notebook Installation not correct?

thanks

Uwe Brauer 
0
Reply oub (83) 2/24/2009 2:13:01 PM

I think this is working "properly".  There is no integration between M-file publishing and the MATLAB notebook.
0
Reply matthew9249 (239) 2/24/2009 9:04:01 PM


"Matthew Simoneau" <matthew@mathworks.com> wrote in message <go1nc1$hqr$1@fred.mathworks.com>...
> I think this is working "properly".  There is no integration between M-file publishing and the MATLAB notebook.

oops, then I must I add I find notebook far less convinient than I thought.

So it turns out when I publish a .m file in Latex it is more convinient, because:

1. I can, using (X)emacs run the matlab commands contained in the file, region which 
   using matlab.el, at least for Linux-unix, not sure about XP and cygwin

2. I can display the graphics (png or ps) via x-symbol pkg using ImageMagick


which brings me to the following question. could the built in editor have a similar feature, that is display the graphics which corresponds to a plot command.

Have a look at http://x-symbol.sourceforge.net/
to see how xsymbol does this.
0
Reply oub (83) 2/25/2009 12:04:01 PM

2 Replies
42 Views

(page loaded in 0.094 seconds)

Similiar Articles:













7/7/2012 10:15:54 PM


Reply: