<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Univers 57 Condensed";
        panose-1:0 11 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:Monospaced;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Univers 57 Condensed","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>Hi Claus and Adrien,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>Thanks for you feedback and workaround.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>Not the cleanest way of doing this but it works.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>Below Claus code with small syntax modification to handle my Nx1 text string and also cleaning the temporary disk file:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Monospaced","serif"'>fd</span><span style='font-family:"Monospaced","serif";color:windowtext'> </span><span style='font-family:"Monospaced","serif";color:#5C5C5C'>=</span><span style='font-family:"Monospaced","serif";color:windowtext'> </span><span style='font-family:"Monospaced","serif";color:#32B9B9'>mopen</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif";color:rosybrown'>"text_out.txt"</span><span style='font-family:"Monospaced","serif"'>,</span><span style='font-family:"Monospaced","serif";color:rosybrown'>'wt'</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-family:"Monospaced","serif"'>;</span><span style='font-family:"Monospaced","serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Monospaced","serif";color:#32B9B9'>mfprintf</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif"'>fd,</span><span style='font-family:"Monospaced","serif";color:rosybrown'>'%s\n'</span><span style='font-family:"Monospaced","serif"'>,my_Nx1_string</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-family:"Monospaced","serif"'>;</span><span style='font-family:"Monospaced","serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Monospaced","serif";color:#32B9B9'>mclose</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif"'>fd</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-family:"Monospaced","serif"'>;</span><span style='font-family:"Monospaced","serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Monospaced","serif";color:#A020F0'>if</span><span style='font-family:"Monospaced","serif";color:windowtext'> </span><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif";color:#32B9B9'>isdef</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif";color:rosybrown'>'editor'</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-family:"Monospaced","serif";color:windowtext'> </span><span style='font-family:"Monospaced","serif";color:#5C5C5C'>|</span><span style='font-family:"Monospaced","serif";color:windowtext'> </span><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif";color:#32B9B9'>funptr</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif";color:rosybrown'>'editor'</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-family:"Monospaced","serif";color:#5C5C5C'><></span><span style='font-family:"Monospaced","serif";color:rosybrown'>0</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>))</span><span style='font-family:"Monospaced","serif";color:windowtext'> </span><span style='font-family:"Monospaced","serif";color:#A020F0'>then</span><span style='font-family:"Monospaced","serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Monospaced","serif";color:windowtext'>    </span><u><span style='font-family:"Monospaced","serif";color:#AE5CB0'>editor</span></u><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif";color:rosybrown'>"text_out.txt"</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-family:"Monospaced","serif"'>;</span><span style='font-family:"Monospaced","serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Monospaced","serif";color:windowtext'>    </span><u><span style='font-family:"Monospaced","serif";color:#AE5CB0'>mdelete</span></u><span style='font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-family:"Monospaced","serif";color:rosybrown'>"text_out.txt"</span><span style='font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-family:"Monospaced","serif"'>;</span><span style='font-family:"Monospaced","serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Monospaced","serif";color:#A020F0'>end</span><span style='font-family:"Monospaced","serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>PS:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>In my case editor() opens Scipad 8.72.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'>Rafael G.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Univers 57 Condensed","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> users [mailto:users-bounces@lists.scilab.org] <b>On Behalf Of </b>Claus Futtrup<br><b>Sent:</b> Monday, May 12, 2014 7:29 PM<br><b>To:</b> users@lists.scilab.org<br><b>Subject:</b> Re: [Scilab-users] Displaying large amount of text outside the Scilab console<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hi Rafael<br><br>Yes it is possible to save the string to a file, then load it into the Scinotes editor. I've done this for years.<o:p></o:p></p><pre><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>fd </span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#5C5C5C'>=</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'> </span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#32B9B9'>mopen</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>filename1,</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:rosybrown'>'wt')</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'><o:p></o:p></span></pre><pre><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#32B9B9'>mfprintf</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>fd, yourstring)<o:p></o:p></span></pre><pre><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#32B9B9'>mfprintf</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>fd,</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:rosybrown'>"\n"</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>;<o:p></o:p></span></pre><pre><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#32B9B9'>mclose</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>fd</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>;<o:p></o:p></span></pre><pre><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#A020F0'>if</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'> </span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#32B9B9'>isdef</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:rosybrown'>'editor'</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'> </span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#5C5C5C'>|</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'> </span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#32B9B9'>funptr</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:rosybrown'>'editor'</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#5C5C5C'><></span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:rosybrown'>0</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>))</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'> </span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#A020F0'>then</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'><o:p></o:p></span></pre><pre><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>  </span><u><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#AE5CB0'>editor</span></u><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>(</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'>filename1</span><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#4A55DB'>)</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'><o:p></o:p></span></pre><pre><span style='font-size:10.5pt;font-family:"Monospaced","serif";color:#A020F0'>end</span><span style='font-size:10.5pt;font-family:"Monospaced","serif"'><o:p></o:p></span></pre><p class=MsoNormal><br>/Claus<br><br>On 12-May-14 19:30, Rafael Guerra wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Hello,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Does anyone know how to properly display a large amount of plain text stored<o:p></o:p></pre><pre>in a string variable of size (N,1), i.e. with N text lines of variable<o:p></o:p></pre><pre>length, outside the Scilab console window?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>For instance, is it possible to issue Scilab command to display the text<o:p></o:p></pre><pre>variable in one of Scinotes or Scipad tabs?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Thanks and regards,<o:p></o:p></pre><pre>Rafael G.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>users mailing list<o:p></o:p></pre><pre><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><o:p></o:p></pre><pre><a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></pre><pre>.<o:p></o:p></pre><pre><o:p> </o:p></pre></blockquote><p class=MsoNormal><o:p> </o:p></p></div></body></html>