Must be caused by subs probably
Yes, subs() does not give numeric output. You must convert it to numeric with double() or similar.
axis([1 1 1 double(Amax)])
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!