I'm sorry I always ask you something similar.
I am studying Matlab.
I have a M
M = '0110000101100010011000111000000000000000000000000000000000000000'
how to make array like this? just 1 row
M_array = [ 0 1 1 0 0 0 0 1 0 1 1 0 0.......... 0 0 0 ]

 Accepted Answer

KSSV
KSSV on 12 Jun 2020
Edited: KSSV on 12 Jun 2020
M_array = str2double(num2cell(M))

1 Comment

I appreciate what you did. Thank you!

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Tags

Asked:

on 12 Jun 2020

Commented:

on 13 Jun 2020

Community Treasure Hunt

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

Start Hunting!