EXTRACT VALUE FROM CELL IN ARRAY

1 view (last 30 days)
Shany Erez
Shany Erez on 9 Feb 2021
Answered: Shany Erez on 10 Feb 2021
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 Comments
madhan ravi
madhan ravi on 9 Feb 2021
Illustrate with an example.
Jan
Jan on 9 Feb 2021
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.

Sign in to comment.

Answers (1)

Shany Erez
Shany Erez on 10 Feb 2021
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,

Community Treasure Hunt

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

Start Hunting!