I am trying to add an index value (cell) from a matrix to a string and use the entire string as a variable. Any ideas?

2 Ansichten (letzte 30 Tage)
>> A = {1,2,3,4}
A =
1×4 cell array
[1] [2] [3] [4]
>> char(strcat('Number',A(1,1),'All_Time_Slices'))=1
Function 'subsindex' is not defined for values of class 'cell'.

Antworten (1)

Walter Roberson
Walter Roberson am 29 Jun. 2017

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by