change tick marks on x axis
2 views (last 30 days)
Show older comments
I am trying to change the tick marks on the x axis to 0 - 700 by a 100 increment but when i put the code in to do so the ticks simply disappear
can anyone help?
clc,clear
a = [12500 8800 5600 2688; 11950 8500 5350 2625 ; 11500 8200 5100 2600 ; 11100 8050 5100 2618; 10900 8000 5350 2725; 10600 7950 5650 2875; 10400 7930 5680 3125; 10400 7900 6150 3350 ];
plot(a);
xlabel('Speed (knots)'); ylabel('Thrust Available (lbf)');
title('Power Avaiable vs Altitude');
legend('0ft','15000ft','30000ft','45000ft') xticks([0 100 200 300 400 500 600 700]) xticklabels({'0','100','200','300','400','500','600','700'})
0 Comments
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!