创建基于 matlab 列的函数
有谁知道如何解决
Octave 中 ?公认的解决方案是使用 diff
。
Matlab 的 diff
似乎与 Octave 的行为不同,并且不接受字符。
任何想法表示赞赏。
Does anybody know how to solve
removing duplicates - ** only when the duplicates occur in sequence
in Octave? The accepted solution is using diff
.
Matlab's diff
seems to behave differently than the Octave's one and doesn't accept characters.
Any idea is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将字符转换为其 ASCII 代码,然后按给出的方式运行解决方案:
You can convert the characters to their ASCII codes, then run the solution as given: