how to change this?

1 view (last 30 days)
Younghun Kim
Younghun Kim on 12 Jun 2020
Commented: Younghun Kim on 13 Jun 2020
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
Younghun Kim
Younghun Kim on 13 Jun 2020
I appreciate what you did. Thank you!

Sign in to comment.

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!