MATLAB: How to remove sample time color warning: “The model has 7 discrete rates, which is greater than the 6 discrete sample time colors available. The 6th and slower rates have been marked using the orange sample time color.”

colorsamplesimulinktimewarning

Best Answer

To turn off the mentioned warning message, please run the following command from your MATLAB command window:
>> warning('off', 'Simulink:SampleTime:NoMoreSampleTimeColors')
Alternatively, to eliminate this warning, you can select 'Annotations' or 'Off' in 'Display->Sample Time-> Annotations/Off'. The warning is due to the number of colors in the Colors setup. Choosing 'Annotations' to display the sample time will solve the issue and you will have the same information available.