An easy way to apply a transformation to many data points
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!