How can I convert a cell array with values {'S101' 'S102'},to a double array?
1 次查看(过去 30 天)
显示 更早的评论
events = {'S100';'S102';'S103';'S101'}
3 个评论
John D'Errico
2018-8-21
A double array of what? The numbers [101, 102]? Or, perhaps the values stored inside the variables S101, S012, etc? Or maybe even the ascii representation of those characters. The point is, 'S101' is itself not a number. It is just a string of characters. In your eyes, it may represent something, but only you know the context of what you want to see.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!