필터 지우기
필터 지우기

All values on the axis

조회 수: 3 (최근 30일)
Anshul Jain
Anshul Jain 2021년 2월 15일
댓글: Walter Roberson 2021년 2월 15일
Dear Sir,
I have two parameters A and B and both are having 9 values.
I want to plot a 2D plot between them. I have already plotted it but all the values of A (like 0.02, 0.01 etc..) are not showing on the X-axis (File attached)
The coding I am using for it is as follows:
getplot('F1:G10');
function getplot(st)
T = readtable('Book2.xlsx', 'Sheet',1, 'Range',st);
T = table2array(T);
Tolerance=T(:,1);
Error=T(:,2);
plot(Tolerance,Error,'*-g');
xlabel('Tolerance(mm)');
ylabel('Errors(mm)');
end
Kindly let me know how to get all the values of A on X-axis.
Thanks in advance

답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by