简体   繁体   English

八度 - 将字符串拆分为字符

[英]Octave - Split string into characters

Using octave I want to split a string into its individual characters. 使用八度音,我想将一个字符串拆分成各自的字符。

How do I do this? 我该怎么做呢?

For example converting 例如转换

x = "hello"

to

c = [h, e, l, l, o]

Thanks in advance for the help 先谢谢您的帮助

It's already split in Matlab's string actually: 实际上它已经在Matlab的字符串中拆分了:

x = 'hello'
x(1)
>> h

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM