<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi AAron,<br>
<br>
The idea is that axes are always regular, so that the min, max and
number of steps is sufficient to generate the axis vector. The min and
max is given in the 'xylimits' field of Matlab data structure, or on '#
xylimits:' line of PGPLOT data format file. The number of steps is
written in the 'type' field and '# type:' line as well. Then that's
really easy to generate the axes with 'linspace' function in Matlab.<br>
<br>
the best for you is to generate the data using the PGPLOT format. If
you do not have PGPLOT you will not be able to plot it. Anyway you may
use the 'mcformat' tool to convert it to e.g. Matlab format. You may
also convert - still with mcformat - your Matlab data into PGPLOT if
the simulation is too long to re-run.<br>
<br>
E.<br>
<br>
Aaron M. Percival wrote:
<blockquote cite="mid006801c734cb$e2f941a0$a21e0f82@amgap" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 11">
<meta name="Originator" content="Microsoft Word 11">
<link rel="File-List" href="cid:filelist.xml@01C734A1.F6E0B8D0">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DisplayBackgroundShape/>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:SelectEntireFieldWithStartOrEnd/>
<w:UseWord2002TableStyleRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:EN-CA;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin:0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0pt 5.4pt 0pt 5.4pt;
mso-para-margin:0pt;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
</o:SmartTagType></o:SmartTagType></o:SmartTagType></o:SmartTagType>
<div class="Section1">
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA">Good Day,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA">I have a
simple question about exporting McStas data
from Matlab to another platform. <span style=""> </span>I’ll
give an example of what I want to do:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA">I have a
type Monitor_nD detector with the following
options set, <i style=""><span style="font-style: italic;">options =
"banana, theta, limits<span class="GramE">=[</span>60,150], bins=100"</span></i>.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA">I’d like to
take the data from this detector
and export it to, say Origin for further analysis. <span style=""> </span>I’ve
found in the detector file the
array for the data and the errors, however, I cannot find the array for
the
x-values (in this case theta values). <span style=""> </span>However,
I did find something called <i style=""><span
style="font-style: italic;">stepx: 0.9091</span></i>.<span style="">
</span>Are the x-values generated by starting at (in this case) 60,
then
increasing each increment by 0.9091, 100 times (since there are 100
bins)?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA">Aaron M.
Percival<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-CA"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">*************************************************</span></font><font
face="Courier New"><span style="font-family: "Courier New";"
lang="EN-CA"><o:p></o:p></span></font></p>
<p class="MsoAutoSig"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";">Aaron M. Percival<o:p></o:p></span></font></p>
<p class="MsoAutoSig"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";">M.Sc. Candidate<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">Dept.
of
Physics, Engineering Physics & Astronomy<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">Queen's
University<o:p></o:p></span></font></p>
<p class="MsoNormal"><st1:place w:st="on"><st1:City w:st="on"><font
face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">Kingston</span></font></st1:City><font
face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">, <st1:State
w:st="on">Ontario</st1:State>, <st1:country-region w:st="on">Canada</st1:country-region></span></font></st1:place><font
face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">,
K7L 3N6<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">Office:
613-533-6000
ext. 74789<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">Fax:
613-533-6463<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";" lang="EN-CA">*************************************************</span></font><font
face="Courier New"><span style="font-family: "Courier New";"
lang="EN-CA"><o:p></o:p></span></font></p>
<p class="MsoAutoSig"><font face="Courier New" size="3"><span
style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;" lang="EN-CA"><o:p> </o:p></span></font></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
neutron-mc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:neutron-mc@risoe.dk">neutron-mc@risoe.dk</a>
<a class="moz-txt-link-freetext" href="http://mailman.risoe.dk/mailman/listinfo/neutron-mc">http://mailman.risoe.dk/mailman/listinfo/neutron-mc</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
What's up Doc ?
--------------------------------------------
Emmanuel FARHI, <a class="moz-txt-link-freetext" href="http://www.ill.fr/Computing/people/Farhi">http://www.ill.fr/Computing/people/Farhi</a> \|/ ____ \|/
CS-Group BP2/22, Institut Laue-Langevin (ILL) Grenoble ~@-/ oO \-@~
6 rue J. Horowitz, BP 156, 38042 Grenoble Cedex 9,France /_( \__/ )_\
Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06 \__U_/
</pre>
</body>
</html>