String to Binary Representation - MATLAB Cody - MATLAB Central

Problem 45242. String to Binary Representation

Difficulty:Rate

Given a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example: Input: 'abc', goes to [97 98 99], and then Ouput: [1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1];

Solution Stats

11.18% Correct | 88.82% Incorrect
Last Solution submitted on Dec 28, 2023

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers16

Problem Tags

Community Treasure Hunt

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

Start Hunting!