rns a size array of the symmetric Kruskal tensor.</p><pre class="codeinput"><span class="comment">%Declaring a symmetric Kruskal tensor</span>
ndims(S)
size(S)
</pre><pre class="codeoutput">ans =
     3
ans =
     4     4     4
</pre><h2 id="9">Use ncomponents for the rank of symktensor</h2><p>The function <tt>ncomponents</tt> returns the number of components of a <tt>symktensor</tt> object. This is <img src="symktensor_doc_eq04958265083611378313.png" alt="$r$" style="width:6px;height:6px;"> in the symktens