Renaming variables from the parameter list to "_1".

조회 수: 1 (최근 30일)
Ferd
Ferd 2017년 1월 30일
댓글: Ferd 2017년 1월 31일
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