<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lysario - by Panagiotis Chatzichrisafis &#187; Scilab</title>
	<atom:link href="https://lysario.de/category/scilab/feed" rel="self" type="application/rss+xml" />
	<link>https://lysario.de</link>
	<description>&#34;ούτω γάρ ειδέναι το σύνθετον υπολαμβάνομεν, όταν ειδώμεν εκ τίνων και πόσων εστίν ...&#34;</description>
	<lastBuildDate>Thu, 15 Apr 2021 17:28:24 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Export data from Scilab for PSTricks plots</title>
		<link>https://lysario.de/scilab/export-data-from-scilab-for-pstricks-plots-in-latex</link>
		<comments>https://lysario.de/scilab/export-data-from-scilab-for-pstricks-plots-in-latex#comments</comments>
		<pubDate>Sun, 25 Jan 2015 13:36:28 +0000</pubDate>
		<dc:creator>Panagiotis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scilab]]></category>

		<guid isPermaLink="false">https://lysario.de/?p=1080</guid>
		<description><![CDATA[It is possible to load data from a file for plots with PSTricks in TeX. According to the PSTricks manual all that is needed is a file with a list of coordinate pairs delimited by curly braces , parentheses, commas. One easy solution is to use the write command from scilab. Define the following function: [...]]]></description>
				<content:encoded><![CDATA[It is possible to load data from a file for plots with PSTricks in TeX. According to the <a href="https://mirror.ctan.org/graphics/pstricks/base/doc/pstricks-doc.pdf" target="_blank">PSTricks manual </a>all that is needed is a file with a list of coordinate pairs delimited by curly braces , parentheses, commas.<span id="more-1080"></span>
<br />
One easy solution is to use the write command from scilab. Define the following function:
<pre><code>
function pstrickswrite2d(filename,data_matrix)
//Author: Panagiotis Chatzichrisafis
//Date: 25.01.2015
//Description: 
//The function pstrickswrite2d(filename,data_matrix) has two inputs: 
//<filename>: The path and the filename which shall be used to write 
//            formated output for PSTricks 
//<data_matrix>: The matrix containing the data to be written into the file provided by
//               <filename> argument.
//The output written to the <filename> file has a format which is suitable for 
//the TeX PSTricks package fileplot or dataplot commands.  
    _num_decimal_places_=5; 
    file_desc=file('open',filename,'unknown','formatted');
    _max_num_ = max(abs(data_matrix));
    _num_integer_digits_ = ceil(log10(_max_num_)); 
    _num_format_(1) ='F';
    // add number of integer digits and decimal digits plus 2 for sign information
    _num_format_(2) = string(_num_integer_digits_+_num_decimal_places_+2); 
    _num_format_(3) ='.'; 
    _num_format_(4) = string(_num_decimal_places_);
    _num_format_ =strcat(_num_format_);
    _format_(1)   ='( ''{'' '   ;
    _format_(2)   = _num_format_; 
    _format_(3)   = ', '','' '  ;
    _format_(4)   = _num_format_; 
    _format_(5)   = ' ''}'' )'  ;
    _format_=strcat(_format_);
    write(file_desc,data_matrix,_format_); 
    file('close',file_desc);
endfunction
</blockquote>
</code></pre> 

and load it into the scilab workspace.

<!-- The entry title is:Export data from Scilab for PSTricks plotsThe compare string is:LaTeX TesterAnd the comparison is: FALSE -->
]]></content:encoded>
			<wfw:commentRss>https://lysario.de/scilab/export-data-from-scilab-for-pstricks-plots-in-latex/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scilab Startup Configuration on MacOsX</title>
		<link>https://lysario.de/scilab/scilab-startup-configuration-on-macosx</link>
		<comments>https://lysario.de/scilab/scilab-startup-configuration-on-macosx#comments</comments>
		<pubDate>Sat, 05 May 2012 14:20:52 +0000</pubDate>
		<dc:creator>Panagiotis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scilab]]></category>

		<guid isPermaLink="false">https://lysario.de/?p=907</guid>
		<description><![CDATA[Sometimes it is useful to have several scripts (with standard definitions) loaded immediately into scilab. On MacOsX Scilab executes at startup the first lines of the file .scilab. The file has to be placed (if it does already exist) under the directory: /home/User/.Scilab/scilab-version If the file isn&#8217;t there just create one and call your scripts [...]]]></description>
				<content:encoded><![CDATA[Sometimes it is useful to have several scripts (with standard definitions) loaded immediately into scilab.
<br />
On MacOsX Scilab executes at startup <a href="https://help.scilab.org/docs/5.3.3/en_US/startup.html" target="_blank">the first lines of the file .scilab</a>. The file has to be placed (if it does already exist) under the directory:
<br />
<code>
/home/<img src="https://lysario.de/wp-content/cache/tex_524a50782178998021a88b8cd4c8dcd8.png" align="bottom" class="tex" alt="&lt;" />User<img src="https://lysario.de/wp-content/cache/tex_cedf8da05466bb54708268b3c694a78f.png" align="bottom" class="tex" alt="&gt;" />/.Scilab/<img src="https://lysario.de/wp-content/cache/tex_524a50782178998021a88b8cd4c8dcd8.png" align="bottom" class="tex" alt="&lt;" />scilab-version<img src="https://lysario.de/wp-content/cache/tex_cedf8da05466bb54708268b3c694a78f.png" align="bottom" class="tex" alt="&gt;" />
</code>
<br />
If the file isn&#8217;t there just create one and call your scripts with the definitions to be loaded into the scilab workspace.
<br /> 
<br />
For example you might want to load definitions of physical constants into the workspace that are defined within &#8216;physical_constants.sce&#8217;. For this purpose add a line like the following into the .scilab file: 
<br />
<br />
<code>exec('Users/<img src="https://lysario.de/wp-content/cache/tex_524a50782178998021a88b8cd4c8dcd8.png" align="bottom" class="tex" alt="&lt;" />User<img src="https://lysario.de/wp-content/cache/tex_cedf8da05466bb54708268b3c694a78f.png" align="bottom" class="tex" alt="&gt;" />/Development/scilab/Base/physical_constants.sce');</code>
<!-- The entry title is:Scilab Startup Configuration on MacOsXThe compare string is:LaTeX TesterAnd the comparison is: FALSE -->
]]></content:encoded>
			<wfw:commentRss>https://lysario.de/scilab/scilab-startup-configuration-on-macosx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
