<span class="hljs-comment">% This use of &#x27; is for transpose:</span>
mat2x2 = [<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>]&#x27;;  <span class="hljs-comment">% transpose of a matrix</span>
cell2x2 = {<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>}&#x27;; <span class="hljs-comment">% transpose of a cell</span>
v=mat2x2&#x27;;             <span class="hljs-comment">% transpose of a variable</span>
v2 = (v&#x27;)&#x27;;            <span class="hljs-comment">% two transpose operations</span>
foo = <span class="hljs-number">1.</span>&#x27;;             <span class="hljs-comment">% transpose of scalar 1.</span>

<span class="hljs-comment">% Nonconjugate transpose uses .&#x27;</span>
mat2x2 = [<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>].&#x27;;  <span class="hljs-comment">% of a matrix</span>
cell2x2 = {<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>}.&#x27;; <span class="hljs-comment">% of a cell</span>
v=mat2x2.&#x27;;             <span class="hljs-comment">% of a variable</span>
v2 = (v.&#x27;).&#x27;;           <span class="hljs-comment">% two operations</span>
foo = <span class="hljs-number">1.</span>.&#x27;;             <span class="hljs-comment">% of scalar 1.</span>
bar = v.&#x27;&#x27;.&#x27;.&#x27;&#x27;;        <span class="hljs-comment">% mix of transpose operations</span>

<span class="hljs-comment">% single quote strings:</span>
sq1 = <span class="hljs-string">&#x27;a single quote string&#x27;</span>;
sq2 = ...
<span class="hljs-string">&#x27; abcd &#x27;</span>;         <span class="hljs-comment">% single quote string starting at column 1</span>
sq3 = [<span class="hljs-string">&#x27;a&#x27;</span>,<span class="hljs-string">&#x27;bc&#x27;</span>]; <span class="hljs-comment">% array of single quote strings</span>
sq4 = {<span class="hljs-string">&#x27;a&#x27;</span>,<span class="hljs-string">&#x27;bc&#x27;</span>}; <span class="hljs-comment">% cell of single quote strings</span>

<span class="hljs-comment">% double quote strings</span>
dq1 = <span class="hljs-string">&quot;a double string&quot;</span>;
dq2 = ...
<span class="hljs-string">&quot; abcd &quot;</span>;         <span class="hljs-comment">% double quote string starting at column 1</span>
dq3 = [<span class="hljs-string">&quot;a&quot;</span>,<span class="hljs-string">&quot;bc&quot;</span>]; <span class="hljs-comment">% array of double quote strings</span>

<span class="hljs-comment">% Mixture of strings and transpose</span>
c2 = {<span class="hljs-string">&#x27;a&#x27;</span>,<span class="hljs-string">&#x27;bc&#x27;</span>}&#x27;; <span class="hljs-comment">% transpose of a cell of strings</span>
s = [<span class="hljs-string">&#x27;a&#x27;</span>,<span class="hljs-string">&#x27;bc&#x27;</span>]&#x27;;  <span class="hljs-comment">% you can transpose vectors of strings (they are really &#x27;char&#x27; arrays)</span>
s = s&#x27;;           <span class="hljs-comment">% and transpose back</span>
<span class="hljs-comment">% (s&#x27;)&#x27; is a double transpose of a string</span>
x = [(s&#x27;)&#x27;, <span class="hljs-string">&#x27; xyz &#x27;</span>, <span class="hljs-string">&#x27;a single quote in a string&#x27;&#x27;, escape \&#x27;, two quotes in a string&#x27;&#x27;&#x27;&#x27;&#x27;</span>];  

s2 = <span class="hljs-string">&quot;abc\&quot;def&quot;&quot;ghi&quot;</span>;      <span class="hljs-comment">% newer versions of MATLAB support double quoted strings</span>
s3 = ([<span class="hljs-string">&quot;abc&quot;</span>, <span class="hljs-string">&quot;defg&quot;</span>]&#x27;)&#x27;;  <span class="hljs-comment">% transpose a vectors of quoted string twice</span>
s4 = <span class="hljs-string">&quot;abc&quot;</span>!;               <span class="hljs-comment">% transpose a quoted string</span>

b = <span class="hljs-built_in">true</span>&#x27; + <span class="hljs-built_in">false</span>&#x27;;        <span class="hljs-comment">% boolean constants</span>
