EXTRACT VALUE FROM CELL IN ARRAY

1 回表示 (過去 30 日間)
Shany Erez
Shany Erez 2021 年 2 月 9 日
回答済み: Shany Erez 2021 年 2 月 10 日
Hi,
I got an array with strings values.
I want to save each value in variable.
How can I save the value?
i have tried to save as C=A[1,1} for example and it created a categorial table of 1x1 of the cell i wanted. But i want the actual value of that cell in order to save it in variable and continue the work with that saved variable.
I would really appreciate your asisstance,
Shany/
  2 件のコメント
madhan ravi
madhan ravi 2021 年 2 月 9 日
Illustrate with an example.
Jan
Jan 2021 年 2 月 9 日
The question is not clear yet. Which kind of array do you have as input? What is wanted as output? Why do you want to create different variables instead of using indices? "C=A[1,1}" contains a typo: Square brackets oder curly braces? "categorial table of 1x1 of the cell" mixes almost all data types, such that the confusion is perfect.

サインインしてコメントする。

回答 (1 件)

Shany Erez
Shany Erez 2021 年 2 月 10 日
Hi,
Sorry about the confusion.
I meant that i used C=A{1,1} where A is the table as being seen in Capture1, and the C created is 1x1 categorical array(as seen in Capture2) contain the relevant value. I want to get this string value and put in a variable.
I would really appreciate your help on how can i do it.
Shany,

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by