필터 지우기
필터 지우기

change tick marks on x axis

조회 수: 2 (최근 30일)
Austen Thomas
Austen Thomas 2018년 2월 16일
답변: Austen Thomas 2018년 2월 16일
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'})

답변 (1개)

Austen Thomas
Austen Thomas 2018년 2월 16일
never mind

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by