oct2poly - Convert octal number to binary coefficients (2024)

Convert octal number to binary coefficients

collapse all in page

Syntax

b = oct2poly(oct)

b = oct2poly(oct,ord)

Description

b = oct2poly(oct) convertsan octal number, oct, to a vector of binary coefficients, b.

example

b = oct2poly(oct,ord) specifiesthe power order, ord, of the coefficients thatcomprise the output. If omitted, ord is 'descending'.

Examples

collapse all

Convert Octal Number to Binary Vector

Convert the octal number 11 to a binary vector.

b = oct2poly(11)
b = 1×4 1 0 0 1

The binary vector corresponds to the polynomial x3+1.

Convert Octal Number to Ascending Order Binary Vector

Open Live Script

Convert the octal number 65 to an ascending order binary vector.

b = oct2poly(65,'ascending')
b = 1×6 1 0 1 0 1 1

Sixty-five octal is the generator polynomial of a (15,10) Hamming code in the Bluetooth® v4.0 standard. The binary representation of 65 octal is 110101 and the GF(2) polynomial is 1+x2+x4+x5 or [1 0 1 0 1 1] in ascending powers.

Input Arguments

collapse all

octOctal number
scalar

Octal number, specified as a positive integer scalar.

Example: 15

Example: 3177

Data Types: double

ordPower order
'descending' (default) | 'ascending'

Power order of the binary coefficients vector, specified asa character vector having a value of 'ascending' or 'descending'.

Data Types: char

Output Arguments

collapse all

b — Binary coefficients
vector

Binary coefficients representing a polynomial, returned as arow vector having length equal to p +1, where p is the order ofoctal input.

Version History

Introduced in R2015b

See Also

hex2poly | oct2dec

MATLAB Command

You clicked a link that corresponds to this MATLAB command:

 

Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

oct2poly - Convert octal number to binary coefficients (1)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Americas

Europe

Asia Pacific

Contact your local office

oct2poly - Convert octal number to binary coefficients (2024)
Top Articles
10 lower-risk investments to consider
Candle Making 101: Hot Throw
123 Movies Black Adam
Form V/Legends
Pnct Terminal Camera
The Definitive Great Buildings Guide - Forge Of Empires Tips
Missing 2023 Showtimes Near Cinemark West Springfield 15 And Xd
Mohawkind Docagent
Lowes 385
Chuckwagon racing 101: why it's OK to ask what a wheeler is | CBC News
What Was D-Day Weegy
Rls Elizabeth Nj
Marion County Wv Tax Maps
I Wanna Dance with Somebody : séances à Paris et en Île-de-France - L'Officiel des spectacles
Tcu Jaggaer
Hilo Hi Craigslist
Craiglist Kpr
Webcentral Cuny
Nesz_R Tanjiro
Costco Great Oaks Gas Price
Silive Obituary
Long Island Jobs Craigslist
O'Reilly Auto Parts - Mathis, TX - Nextdoor
Cornedbeefapproved
Access a Shared Resource | Computing for Arts + Sciences
Perry Inhofe Mansion
Renfield Showtimes Near Marquee Cinemas - Wakefield 12
Sun-Tattler from Hollywood, Florida
Orange Pill 44 291
Helloid Worthington Login
Vanessa West Tripod Jeffrey Dahmer
New Gold Lee
Bitchinbubba Face
Eastern New Mexico News Obituaries
Bella Thorne Bikini Uncensored
Sam's Club Gas Prices Deptford Nj
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Craigs List Palm Springs
Dcilottery Login
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Pokemon Reborn Gyms
6576771660
Grizzly Expiration Date Chart 2023
Peace Sign Drawing Reference
Best Haircut Shop Near Me
705 Us 74 Bus Rockingham Nc
What is a lifetime maximum benefit? | healthinsurance.org
Large Pawn Shops Near Me
Bedbathandbeyond Flemington Nj
2487872771
How To Find Reliable Health Information Online
Latest Posts
Article information

Author: Carlyn Walter

Last Updated:

Views: 6862

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.