diff options
Diffstat (limited to 'help/en_US/scilab_en_US_help/unshiftdata.html')
-rw-r--r-- | help/en_US/scilab_en_US_help/unshiftdata.html | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/help/en_US/scilab_en_US_help/unshiftdata.html b/help/en_US/scilab_en_US_help/unshiftdata.html deleted file mode 100644 index fed2dab..0000000 --- a/help/en_US/scilab_en_US_help/unshiftdata.html +++ /dev/null @@ -1,122 +0,0 @@ -<html><head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <title>unshiftdata</title> - <style type="text/css" media="all"> - @import url("scilab_code.css"); - @import url("xml_code.css"); - @import url("c_code.css"); - @import url("style.css"); - </style> - </head> - <body> - <div class="manualnavbar"> - <table width="100%"><tr> - <td width="30%"> - <span class="previous"><a href="ultrwin.html"><< ultrwin</a></span> - - </td> - <td width="40%" class="center"> - <span class="top"><a href="section_e54aa8aac34aa55341e8b4b782fe1a74.html">FOSSEE Signal Processing Toolbox</a></span> - - </td> - <td width="30%" class="next"> - <span class="next"><a href="unwrap2.html">unwrap2 >></a></span> - - </td> - </tr></table> - <hr /> - </div> - - - - <span class="path"><a href="index.html">FOSSEE Signal Processing Toolbox</a> >> <a href="section_e54aa8aac34aa55341e8b4b782fe1a74.html">FOSSEE Signal Processing Toolbox</a> > unshiftdata</span> - - <br /><br /> - <div class="refnamediv"><h1 class="refname">unshiftdata</h1> - <p class="refpurpose">Inverts the effect of shiftdata</p></div> - - -<div class="refsynopsisdiv"><h3 class="title">Calling Sequence</h3> - <div class="synopsis"><pre></pre></div></div> - -<div class="refsection"><h3 class="title">Parameters</h3> - <dl></dl></div> - -<div class="refsection"><h3 class="title">Description</h3> - <p class="para">y=unshiftdata(x,perm,nshifts) -Applies the permutation perm or number of shifts nshifts on x to invert shiftdata</p></div> - -<div class="refsection"><h3 class="title">Examples</h3> - <div class="programlisting"><table border="0" width="100%"><tr><td width="98%"><pre class="scilabcode"><span class="scilabid">x</span><span class="scilaboperator">=</span><a class="scilabcommand" href="scilab://testmatrix">testmatrix</a><span class="scilabopenclose">(</span><span class="scilabstring">'</span><span class="scilabstring">magi</span><span class="scilabstring">'</span><span class="scilabdefault">,</span><span class="scilabnumber">3</span><span class="scilabopenclose">)</span> -<span class="scilabid">x</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">8.</span> <span class="scilabnumber">1.</span> <span class="scilabnumber">6.</span> -<span class="scilabnumber">3.</span> <span class="scilabnumber">5.</span> <span class="scilabnumber">7.</span> -<span class="scilabnumber">4.</span> <span class="scilabnumber">9.</span> <span class="scilabnumber">2.</span> -<span class="scilabopenclose">[</span><span class="scilabid">y</span><span class="scilabdefault">,</span><span class="scilabid">perm</span><span class="scilabdefault">,</span><span class="scilabid">nshifts</span><span class="scilabopenclose">]</span> <span class="scilaboperator">=</span> <span class="scilabid">shiftdata</span><span class="scilabopenclose">(</span><span class="scilabid">x</span><span class="scilabdefault">,</span><span class="scilabnumber">2</span><span class="scilabopenclose">)</span> <span class="scilabcomment">//Shifts dimension 2</span> -<span class="scilabid">nshifts</span> <span class="scilaboperator">=</span> - -<span class="scilabopenclose">[</span><span class="scilabopenclose">]</span> -<span class="scilabid">perm</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">2.</span> <span class="scilabnumber">1.</span> -<span class="scilabid">y</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">8.</span> <span class="scilabnumber">3.</span> <span class="scilabnumber">4.</span> -<span class="scilabnumber">1.</span> <span class="scilabnumber">5.</span> <span class="scilabnumber">9.</span> -<span class="scilabnumber">6.</span> <span class="scilabnumber">7.</span> <span class="scilabnumber">2.</span> -<span class="scilabid">z</span><span class="scilaboperator">=</span><span class="scilabid">unshiftdata</span><span class="scilabopenclose">(</span><span class="scilabid">y</span><span class="scilabdefault">,</span><span class="scilabid">perm</span><span class="scilabdefault">,</span><span class="scilabid">nshifts</span><span class="scilabopenclose">)</span> -<span class="scilabid">z</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">8.</span> <span class="scilabnumber">1.</span> <span class="scilabnumber">6.</span> -<span class="scilabnumber">3.</span> <span class="scilabnumber">5.</span> <span class="scilabnumber">7.</span> -<span class="scilabnumber">4.</span> <span class="scilabnumber">9.</span> <span class="scilabnumber">2.</span> - -<span class="scilabid">x</span><span class="scilaboperator">=</span><span class="scilabnumber">1</span><span class="scilabspecial">:</span><span class="scilabnumber">5</span> -<span class="scilabid">x</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">1.</span> <span class="scilabnumber">2.</span> <span class="scilabnumber">3.</span> <span class="scilabnumber">4.</span> <span class="scilabnumber">5.</span> -<span class="scilabopenclose">[</span><span class="scilabid">y</span><span class="scilabdefault">,</span><span class="scilabid">perm</span><span class="scilabdefault">,</span><span class="scilabid">nshifts</span><span class="scilabopenclose">]</span> <span class="scilaboperator">=</span> <span class="scilabid">shiftdata</span><span class="scilabopenclose">(</span><span class="scilabid">x</span><span class="scilabopenclose">)</span> <span class="scilabcomment">//Shifts first non-singleton dimension</span> -<span class="scilabid">nshifts</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">1.</span> -<span class="scilabid">perm</span> <span class="scilaboperator">=</span> - -<span class="scilabopenclose">[</span><span class="scilabopenclose">]</span> -<span class="scilabid">y</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">1.</span> -<span class="scilabnumber">2.</span> -<span class="scilabnumber">3.</span> -<span class="scilabnumber">4.</span> -<span class="scilabnumber">5.</span> -<span class="scilabcomment">//z=unshiftdata(y,perm,nshifts)</span> -<span class="scilabid">z</span> <span class="scilaboperator">=</span> - -<span class="scilabnumber">1.</span> <span class="scilabnumber">2.</span> <span class="scilabnumber">3.</span> <span class="scilabnumber">4.</span> <span class="scilabnumber">5.</span></pre></td><td valign="top"><a href="scilab://scilab.execexample/"><img src="ScilabExecute.png" border="0"/></a></td><td valign="top"><a href="scilab://scilab.editexample/"><img src="ScilabEdit.png" border="0"/></a></td><td></td></tr></table></div></div> - -<div class="refsection"><h3 class="title">See also</h3> - <ul class="itemizedlist"></ul></div> - <br /> - - <div class="manualnavbar"> - <table width="100%"> - <tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr> -<tr> - <td width="30%"> - <span class="previous"><a href="ultrwin.html"><< ultrwin</a></span> - - </td> - <td width="40%" class="center"> - <span class="top"><a href="section_e54aa8aac34aa55341e8b4b782fe1a74.html">FOSSEE Signal Processing Toolbox</a></span> - - </td> - <td width="30%" class="next"> - <span class="next"><a href="unwrap2.html">unwrap2 >></a></span> - - </td> - </tr></table> - <hr /> - </div> - </body> -</html> |