Borrar filtros
Borrar filtros

How to use bitn

5 visualizaciones (últimos 30 días)
Adel Hafri
Adel Hafri el 14 de Mayo de 2022
Respondida: John D'Errico el 14 de Mayo de 2022
pretty much the question, i want to write variables as bitn but i dont understand exactly how to

Respuestas (2)

the cyclist
the cyclist el 14 de Mayo de 2022
I'm not sure if this is what you mean, but there are several integer classes available in MATLAB.

John D'Errico
John D'Errico el 14 de Mayo de 2022
You cannot define a scalar variable as a binary one with an arbitrary number of bits. You can define integer variables, with a specific number of choices, but those integer classes are limited.
However, nothing stops you from defining a vector that would contain the bits as you wish, as separate elements of that vector.

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by