isrgb.mmatlabrgbfunctiony=isrgb(x)%ISRGBReturntrueforRGBimage.%FLAG=ISRGB(A)returns1ifAisanRGBtruecolorimageand%0otherwise.%%ISRGBusesthesecriteriatodetermineifAisanRGBimage:%%-IfAisofclassdouble,allvaluesmustbeintherange%[0,1],andAmustbeM-by-N-by-3.%%