From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: problem running certain matlab code Date: Wed, 02 Aug 2017 12:01:43 +0000 Message-ID: <87tw1q6uvs.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcsLl-0005MX-37 for emacs-orgmode@gnu.org; Wed, 02 Aug 2017 08:02:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcsLg-0001eN-9O for emacs-orgmode@gnu.org; Wed, 02 Aug 2017 08:02:05 -0400 Received: from [195.159.176.226] (port=42346 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcsLg-0001cT-32 for emacs-orgmode@gnu.org; Wed, 02 Aug 2017 08:02:00 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dcsLT-0007aB-65 for emacs-orgmode@gnu.org; Wed, 02 Aug 2017 14:01:47 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello Using GNU emacs 26 and the latest orgmode (git), I have problem executing the followting matlab code clear all C =[ 7 , 8 , 9 , 10 ] latexarray(C,'format','%3.3f') I can execute the matlab code in a matlab shell or in an emacs matlab shell as provided by by matlab.el. Latexarray is a 3rd party m file found in the matlab website. But when I run the code in #+begin_src matlab :results output latex :exports results clear all C =[ 7 , 8 , 9 , 10 ] latexarray(C,'format','%3.3f') #+end_src I obtain #+RESULTS: #+BEGIN_EXPORT latex C = 7 8 9 10 Warning: This implementation of uiputfile has been deprecated and is no longer supported. > In uitools/private/uiputfile_deprecated at 105 In uiputfile at 112 In latexarray>subfunction_options at 207 In latexarray at 91 ??? Error using ==> fprintf Invalid file identifier. Use fopen to generate a valid file identifier. Error in ==> latexarray at 144 fprintf(fid,'%s\n',['\[\begin{array}{',col,'}']);  #+END_EXPORT What shall I do? I don't understand that orgmode is nitpicking here while matlab is not. Thanks Uwe Brauer