フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Split strings inside an array cell of strings

1 回表示 (過去 30 日間)
Mo
Mo 2014 年 6 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, I have a cell array of strings that looks like this:
Rotation = {'PR=60.81' '-0.29' '-53.09#'};
I'm having problems trying to extract the numbers only from inside the Rotation array. I've tried doing multiple things, with strsplit(Rotation(1), '=') I get an error saying the First input must be a string. I'm sure it's something very simple but I have been trying all day and seems I'm missing something.
Your help would be really appreciated :)
Mo
  1 件のコメント
Cedric
Cedric 2014 年 6 月 2 日
編集済み: Cedric 2014 年 6 月 2 日
Do you have only one row in this cell array or multiple ones with similar structure? And where does the cell array come from? It is easy to process the 3 elements that you gave here, but I suspect that it would be even easier to re-design a bit the code that generate this cell array, for it to output directly the numbers.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by