函数名 |
---|
<a href="#nextpow2">nextpow2(L)</a> |
.
.
.
.
.
.
.
.
.
.
.
.....
.
..
....
.
.
.
.
.
.
.
.
.
.
<a id="nextpow2">nextpow2(L)函数</a>
含义: 取不小于L的最小的2的幂。
例如:
<pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="matlab" cid="n13" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">input >> 2^nextpow2(5)
output >> ans = 8</pre>