Renaming variables from the parameter list to "_1".

1 次查看(过去 30 天)
Input list: ParameterList = {A, B, C,...}; % picks up all the parameters from the dataset
Output ParameterList_New = {A_1, B_1, C_1,...)
If we can remove the old list, ParameterList, that would be great.
-Ferdinand
  4 个评论
Ferd
Ferd 2017-1-30
Hi Walter,
Yes, ParameterList is a cell array of strings. Input list: ParameterList = {A, B, C,...}; % picks up all the parameters names from the dataset Output ParameterList_New = {A_1, B_1, C_1,...} % (corrected the bracket)
Hi Stephen, This is more of a post-processing. Need to rename the old list with the new name.
-Ferdinand
John D'Errico
John D'Errico 2017-1-30
No. The point is, you only THINK you need to do that, because you have not learned how to use variables and arrays. You still want to program in Excel, or some language like that. As Stephen said, you don't really need to do it, and it is a bad thing in general.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2017-1-30
ParameterList = strcat(ParameterList, '_1');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by