How would one create a new array name inherited from a string?

조회 수: 1 (최근 30일)
Aaron Reyes
Aaron Reyes 2015년 12월 4일
답변: Walter Roberson 2015년 12월 4일
I have several sample data arrays with systematic names (e.g. 'Control_MP_1', 'Control_MP_2', 'Control_MP_3', 'Control_MP_avg') and I am writing a script where I can just input the array name and it finds my peaks, RMS, and PeakRMS values, but I want to write these into their own individual arrays/variables with the same original name but to add _RMS or _pks, etc. to the end of them so that I end up with 'Control_MP_1_RMS' or something of the like. Thank you!

답변 (1개)

Walter Roberson
Walter Roberson 2015년 12월 4일

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by