change tick marks on x axis

2 views (last 30 days)
Austen Thomas
Austen Thomas on 16 Feb 2018
Answered: Austen Thomas on 16 Feb 2018
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'})

Answers (1)

Austen Thomas
Austen Thomas on 16 Feb 2018
never mind

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!