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?
1 次查看(过去 30 天)
显示 更早的评论
>> 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'.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!