<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scalemodel(model, scalefac):
 """ Given a scale factor, multiply by model to get scaled model Parameters model : array original model scalefac : array of model.shape[0] array of scalefactors Returns ------- scaledmodel : array model scaled by scale factor """

   for ii, mm in enumerate(model):
      scaledmodel[ii] = mm * scalefac[ii]
   return scaledmodel