An easy way to apply a transformation to many data points
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, I have a list of over 100 data points in the form:
BAM_186_Torque_8Nov_0656 BAM_186_Torque_8Nov_0657 BAM_186_Torque_8Nov_0658
etc...
I am current applying an RMS function to them using the following code:
RMS_BAM_186_Torque_8Nov_0656 = rms(BAM_186_Torque_8Nov_0656); RMS_BAM_186_Torque_8Nov_0657 = rms(BAM_186_Torque_8Nov_0657); RMS_BAM_186_Torque_8Nov_0658 = rms(BAM_186_Torque_8Nov_0658); RMS_BAM_186_Torque_8Nov_0659 = rms(BAM_186_Torque_8Nov_0659); RMS_BAM_186_Torque_8Nov_0700 = rms(BAM_186_Torque_8Nov_0700); RMS_BAM_186_Torque_8Nov_0701 = rms(BAM_186_Torque_8Nov_0701); RMS_BAM_186_Torque_8Nov_0702 = rms(BAM_186_Torque_8Nov_0702); RMS_BAM_186_Torque_8Nov_0703 = rms(BAM_186_Torque_8Nov_0703);
My question is, how could I put these into an iterative loop to clean up my code and make my programming easier?
Thank you!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!