<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Non_orth.m</id>
	<title>Non orth.m - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Non_orth.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Non_orth.m&amp;action=history"/>
	<updated>2026-12-06T23:42:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Non_orth.m&amp;diff=10263&amp;oldid=prev</id>
		<title>Kuprov: version fragment to 2.13 per IK 2026-08-30</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Non_orth.m&amp;diff=10263&amp;oldid=prev"/>
		<updated>2026-08-30T09:12:28Z</updated>

		<summary type="html">&lt;p&gt;version fragment to 2.13 per IK 2026-08-30&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:12, 30 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[no_dist.m]], [[amp_root.m]], [[amp_tanh.m]], [[spf.m]], [[szf.m]], [[restrans.m]], [[transfermat.m]], [[Optimal control module]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[no_dist.m]], [[amp_root.m]], [[amp_tanh.m]], [[spf.m]], [[szf.m]], [[restrans.m]], [[transfermat.m]], [[Optimal control module]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Version 2.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Version 2.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13&lt;/ins&gt;, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Non_orth.m&amp;diff=10110&amp;oldid=prev</id>
		<title>Kuprov: sync with Spinach main f053e432: new page for non-orthogonal control channel distortion model</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Non_orth.m&amp;diff=10110&amp;oldid=prev"/>
		<updated>2026-08-30T08:12:32Z</updated>

		<summary type="html">&lt;p&gt;sync with Spinach main f053e432: new page for non-orthogonal control channel distortion model&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:non_orth.m}} __NOTOC__&lt;br /&gt;
Non-orthogonal channel distortion model. Treats odd rows of multi-row waveform arrays as in-phase channels, and even rows as out-of-phase channels. The in-phase channel is kept fixed; the out-of-phase channel is tilted so that its true angle to the in-phase channel is user-specified.&lt;br /&gt;
&lt;br /&gt;
For control channel pair number n, occupying rows 2n-1 and 2n of the waveform array, the distorted rows are obtained as x_new=x+cos(a)*y and y_new=sin(a)*y, where a is the angle specified for that pair. An angle of 90 degrees therefore leaves the waveform unchanged. A scalar angle specification is expanded to all channel pairs. When a second output is requested, the per-channel mixing matrix is assembled as a sparse matrix holding 1, cos(a) and sin(a) at the (x,x), (x,y) and (y,y) positions of each pair, and the Jacobian with respect to the column-wise vectorisations of the input and the output arrays is the Kronecker product of a unit matrix of the size of the time grid with that mixing matrix. The Jacobian is not built when only one output is requested.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     [w,J]=non_orth(w,xy_ang)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     w        - waveform, one time slice per column, and&lt;br /&gt;
                rows arranged as XYXY... with respect to&lt;br /&gt;
                in-phase and quadrature parts on each&lt;br /&gt;
                control channel&lt;br /&gt;
 &lt;br /&gt;
     xy_ang   - true angle, in degrees, between the instru-&lt;br /&gt;
                ment output directions of each X,Y control&lt;br /&gt;
                pair; may be a scalar or one value per pair,&lt;br /&gt;
                with 90 degrees corresponding to no distortion&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     w        - distorted waveform, same dimension as the&lt;br /&gt;
                input waveform&lt;br /&gt;
 &lt;br /&gt;
     J        - Jacobian matrix with respect to vectorisa-&lt;br /&gt;
                tions of the output and the input arrays&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The waveform must have an even number of rows, and the angles must be strictly between 0 and 180 degrees; the transformation becomes singular at both ends of that interval, where sin(a) vanishes and the two output directions become collinear.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[no_dist.m]], [[amp_root.m]], [[amp_tanh.m]], [[spf.m]], [[szf.m]], [[restrans.m]], [[transfermat.m]], [[Optimal control module]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.11, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>