Hello. I have 55 matrices 288×1 named Load1, Load2, Load3, …, Load55. I need to create a for loop which checks whether the values are between 207 and 253. If one of the values exceeds 253 or is less than 207, I need to display the name of this variable. For example, one of the elements of matrix Load7 is 205. In this case, the program should display 'Load7'. Ultimately, I need to get a list of variables which values are not within specified range. Also, the script has to calculate the total number of variables which values are not within the range.
The output of the script shall look like, for example:
The Loads which are not within the range: Load7, Load25, Load37. The total number of loads: 3
Any help is greatly appreciated. Thank you.
Best Answer