MATLAB GUI axes(handles.axes1) does not work?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello;
I have this simple code that is supposed to draw the line having its slope and y intercept. But when I use axes(handles.axes1);
nothing happens. What should I do?
댓글 수: 2
the cyclist
2013년 8월 18일
Can you post a self-contained example that we can run that shows what you mean, in context?
답변 (1개)
Image Analyst
2013년 8월 19일
axes() just switches focus to that particular axes control. It does not actually do any plotting at all. For that you'll need to use the plot() function
plot(x, y, 'bo-', 'LineWidth', 2, 'MarkerSize', 10);
grid on;
axis on;
ylabel('Y', 'FontSize', 30);
xlabel('X', 'FontSize', 30);
댓글 수: 4
Md Nafiul Islam
2017년 12월 21일
Dear, I have used the same code and I draw the line but I need two line of the same graph. Do anyone help me how I update this code to two line. TIA
참고 항목
카테고리
Help Center 및 File Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!