Info

This question is closed. Reopen it to edit or answer.

How to make a new stop in a vector when matlab reads a specific symbol?

1 view (last 30 days)
Hi!
I have some data which is stored in one big string and the numbers I need are separated by '~'. '
This is how that looks like: 33748~33866~33952~34006~33988~33920~33812~33658~ ....
I tried to use ECG= strsplit(Ecg,'~');, but I get a cell array back which I cannot plot properly.
Does somebody know how to solve this problem?
Thanks in advance for your reply.

Answers (1)

Daniel M
Daniel M on 27 Oct 2019
help str2double
help cell2mat

Community Treasure Hunt

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

Start Hunting!