Adapting refers to changing weight values.
help adapt
doc adapt
Obviously, this is not what you mean. Therefore you should explain, in more detail, to what you refer.
Including a few lines of code would probably help.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!