-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>SmallBASIC | TRANSPOSE</title> | ||
<meta name="description" content="Transpose of a vector or a 2D matrix."> | ||
<link rel="canonical" href="1802"> | ||
<link rel="keywords" href="TRANSPOSE (A)"> | ||
<link rel="stylesheet" href="/css/style.css"> | ||
<link rel="icon" type="image/png" href="/images/sb-desktop-32x32.png"> | ||
<script src="/clipboard.js"></script> | ||
</head> | ||
<body> | ||
<div class="wrapAll clearfix"> | ||
<div class="sidebar"> | ||
<div class="logo"> | ||
<a href="/"><img src='/images/sb-desktop-128x128.png' alt="logo"></a> | ||
</div> | ||
<div class="navigation"> | ||
<h4>SmallBASIC</h4> | ||
<ul> | ||
<li><a href="/">Main page</a></li> | ||
<li><a href="/pages/download.html">Download</a></li> | ||
<li><a href="/pages/reference.html">Language reference</a></li> | ||
<li><a href="/pages/samples.html">Code library</a></li> | ||
</ul> | ||
<hr class="menuSeparator"/> | ||
<ul> | ||
<li><a href="/pages/articles.html">Articles</a></li> | ||
<li><a href="/pages/community.html">Community</a></li> | ||
<li><a href="/pages/changelog.html">Changelog</a></li> | ||
<li><a href="/pages/screenshots.html">Screenshots</a></li> | ||
<li><a href="/pages/links.html">Links</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="mainsection"> | ||
<div class="tabs clearfix"> | ||
<div class="tabsLeft"> | ||
<ul> | ||
<li><a href="#" class="active">Article</a></li> | ||
<li><a href="https://www.syntaxbomb.com/smallbasic">Discuss</a></li> | ||
</ul> | ||
</div> | ||
<div id="simpleSearch"> | ||
<form action="https://github.com/smallbasic/smallbasic.github.io/search" | ||
target="_github" accept-charset="UTF-8" method="get" style="display:inline"> | ||
<div id="submitSearch"> | ||
<button type="submit"> </button> | ||
<input type="hidden" class="js-site-search-type-field" name="type"> | ||
<input type="hidden" name="utf8" value="✓"> | ||
<input type="hidden" name="l" value="Visual Basic"> | ||
<input type="text" name="q" placeholder="Search" id="searchInput"> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="tabsRight"> | ||
<ul> | ||
<li><a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/blob/master/_build/reference/1802-math-transpose.markdown">View source</a></li> | ||
<li><a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/commits/master/_build/reference/1802-math-transpose.markdown">View history</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="article"> | ||
<h1>TRANSPOSE</h1> | ||
<blockquote>A = TRANSPOSE (M)</blockquote> | ||
<div class="siteSub"> | ||
<p> | ||
<a href="/">Home</a> > | ||
<a href="/pages/reference.html">Reference</a> > | ||
<a href="/pages/math.html">Math</a> | ||
</p> | ||
</div> | ||
<p>Calculates the transpose <code>A</code> of a 2D matrix or a vector | ||
<code>M</code>.</p> | ||
<h3 id="example-1-transpose-of-a-vetor">Example 1: Transpose of a | ||
vetor</h3> | ||
<div class="sourceCode" id="cb1"><pre | ||
class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>A = [<span class="dv">1</span>;<span class="dv">2</span>;<span class="dv">3</span>;<span class="dv">4</span>]</span> | ||
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="kw">print</span> <span class="fu">transpose</span>(A) <span class="co">' output: [1,2,3,4]</span></span></code></pre></div> | ||
<h3 id="example-2-transpose-of-a-matrix">Example 2: Transpose of a | ||
matrix</h3> | ||
<div class="sourceCode" id="cb2"><pre | ||
class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>A = [<span class="dv">1</span>,<span class="dv">2</span>; <span class="dv">3</span>,<span class="dv">4</span>; <span class="dv">5</span>,<span class="dv">6</span>]</span> | ||
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="kw">print</span> <span class="fu">transpose</span>(A) <span class="co">' output: [1,3,5;2,4,6] </span></span></code></pre></div> | ||
<div class="lavenderBox"> | ||
<div class="header">Math</div> | ||
<div class="linklist"> | ||
<a href="/reference/704.html">ABS </a> | ||
<a href="/reference/705.html">ABSMAX </a> | ||
<a href="/reference/706.html">ABSMIN </a> | ||
<a href="/reference/707.html">ACOS </a> | ||
<a href="/reference/708.html">ACOSH </a> | ||
<a href="/reference/709.html">ACOT </a> | ||
<a href="/reference/710.html">ACOTH </a> | ||
<a href="/reference/711.html">ACSC </a> | ||
<a href="/reference/712.html">ACSCH </a> | ||
<a href="/reference/713.html">ASEC </a> | ||
<a href="/reference/714.html">ASECH </a> | ||
<a href="/reference/715.html">ASIN </a> | ||
<a href="/reference/716.html">ASINH </a> | ||
<a href="/reference/717.html">ATAN </a> | ||
<a href="/reference/718.html">ATAN2 </a> | ||
<a href="/reference/719.html">ATANH </a> | ||
<a href="/reference/720.html">ATN </a> | ||
<a href="/reference/721.html">CEIL </a> | ||
<a href="/reference/722.html">COS </a> | ||
<a href="/reference/723.html">COSH </a> | ||
<a href="/reference/724.html">COT </a> | ||
<a href="/reference/725.html">COTH </a> | ||
<a href="/reference/726.html">CSC </a> | ||
<a href="/reference/727.html">CSCH </a> | ||
<a href="/reference/728.html">DEG </a> | ||
<a href="/reference/693.html">DERIV </a> | ||
<a href="/reference/729.html">DETERM </a> | ||
<a href="/reference/694.html">DIFFEQN </a> | ||
<a href="/reference/730.html">EXP </a> | ||
<a href="/reference/695.html">EXPRSEQ </a> | ||
<a href="/reference/731.html">FIX </a> | ||
<a href="/reference/732.html">FLOOR </a> | ||
<a href="/reference/733.html">FRAC </a> | ||
<a href="/reference/734.html">INT </a> | ||
<a href="/reference/696.html">INTERSECT </a> | ||
<a href="/reference/735.html">INVERSE </a> | ||
<a href="/reference/736.html">LINEQN </a> | ||
<a href="/reference/737.html">LOG </a> | ||
<a href="/reference/738.html">LOG10 </a> | ||
<a href="/reference/697.html">M3APPLY </a> | ||
<a href="/reference/698.html">M3IDENT </a> | ||
<a href="/reference/699.html">M3ROTATE </a> | ||
<a href="/reference/700.html">M3SCALE </a> | ||
<a href="/reference/701.html">M3TRANS </a> | ||
<a href="/reference/739.html">MAX </a> | ||
<a href="/reference/740.html">MIN </a> | ||
<a href="/reference/741.html">POLYAREA </a> | ||
<a href="/reference/742.html">POLYCENT </a> | ||
<a href="/reference/702.html">POLYEXT </a> | ||
<a href="/reference/743.html">POW </a> | ||
<a href="/reference/744.html">PTDISTLN </a> | ||
<a href="/reference/745.html">PTDISTSEG </a> | ||
<a href="/reference/746.html">PTSIGN </a> | ||
<a href="/reference/747.html">RAD </a> | ||
<a href="/reference/748.html">RND </a> | ||
<a href="/reference/703.html">ROOT </a> | ||
<a href="/reference/749.html">ROUND </a> | ||
<a href="/reference/750.html">SEC </a> | ||
<a href="/reference/751.html">SECH </a> | ||
<a href="/reference/752.html">SEGCOS </a> | ||
<a href="/reference/753.html">SEGLEN </a> | ||
<a href="/reference/754.html">SEGSIN </a> | ||
<a href="/reference/755.html">SEQ </a> | ||
<a href="/reference/756.html">SGN </a> | ||
<a href="/reference/757.html">SIN </a> | ||
<a href="/reference/758.html">SINH </a> | ||
<a href="/reference/759.html">SQR </a> | ||
<a href="/reference/760.html">STATMEAN </a> | ||
<a href="/reference/761.html">STATMEANDEV </a> | ||
<a href="/reference/1801.html">STATMEDIAN </a> | ||
<a href="/reference/762.html">STATSPREADP </a> | ||
<a href="/reference/763.html">STATSPREADS </a> | ||
<a href="/reference/1800.html">STATSTD </a> | ||
<a href="/reference/764.html">SUM </a> | ||
<a href="/reference/765.html">SUMSQ </a> | ||
<a href="/reference/766.html">TAN </a> | ||
<a href="/reference/767.html">TANH </a> | ||
<a href="/reference/1802.html"><strong>TRANSPOSE</strong> </a> | ||
</div> | ||
<div class="subtitle"> | ||
If there is insufficient information on this page and you wish learn more about TRANSPOSE, | ||
please send an email to [email protected]. You can help to improve information about | ||
TRANSPOSE by submitting a <a href="https://github.com/smallbasic/smallbasic.github.io/pulls">pull request</a>, | ||
click View Source for details. Note, an offline language reference text file is also available - see the Download section. | ||
</div> | ||
</div> | ||
<div class="categories"> | ||
<a href="/pages/console.html">Console </a> | ||
<a href="/pages/data.html">Data </a> | ||
<a href="/pages/date.html">Date </a> | ||
<a href="/pages/file.html">File </a> | ||
<a href="/pages/graphics.html">Graphics </a> | ||
<a href="/pages/language.html">Language </a> | ||
<a href="/pages/math.html">Math </a> | ||
<a href="/pages/string.html">String </a> | ||
<a href="/pages/system.html">System </a> | ||
</div> | ||
</div> | ||
<div class="pagefooter"> | ||
This page was last edited on Sat, 18 May 2024 23:57:33 +0200 | ||
| | ||
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a> | ||
processed with | ||
<a href="https://pandoc.org/MANUAL.html#pandocs-markdown" target="_blank" rel="nofollow">pandoc 3.1.3</a> | ||
| Template by <a href="http://html5-templates.com/" target="_blank" rel="nofollow">HTML5 Templates</a> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<h1 id="transpose">TRANSPOSE</h1> | ||
<blockquote> | ||
<p>A = TRANSPOSE (M)</p> | ||
</blockquote> | ||
<p>Calculates the transpose <code>A</code> of a 2D matrix or a vector | ||
<code>M</code>.</p> | ||
<h3 id="example-1-transpose-of-a-vetor">Example 1: Transpose of a | ||
vetor</h3> | ||
<pre><code>A = [1;2;3;4] | ||
print transpose(A) ' output: [1,2,3,4]</code></pre> | ||
<h3 id="example-2-transpose-of-a-matrix">Example 2: Transpose of a | ||
matrix</h3> | ||
<pre><code>A = [1,2; 3,4; 5,6] | ||
print transpose(A) ' output: [1,3,5;2,4,6] </code></pre> |