Your data and picture were not attached.
If you have not already discovered the plotyy function, I am linking to it here. That may be the function you want.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!