Turning on grid on ltiviewer
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi everyone,
I displayed 2 systems using ltiview as shown below:
load ltiexamples ltiview({'step';'bode';'impulse';'nichols'},Gcl2,Gcl1)
I'm wondering how do we turn on the grid on these plots using MATLAB commands? (i.e without going to 'viewer preferences>style')
Thanks in advance guys.
댓글 수: 0
답변 (5개)
Paulo Silva
2011년 3월 30일
%brute force way, it turns on the grids for all axes
ha=findobj('type','axes')
arrayfun(@(x)set(x,'XGrid','on'),ha)
arrayfun(@(x)set(x,'YGrid','on'),ha)
Walter Roberson
2011년 3월 30일
After the ltiview() call,
grid on
댓글 수: 2
Walter Roberson
2011년 3월 30일
Ah, it appears ltiview opens a new figure and doesn't return the figure number either. If you findobj('type','figure') then you should be able to locate the figure number; from there you should be able to examine the properties of that figure to see if, for example, it has a particular Tag or Name, or if its children have distinctive properties.
Sorry, I do not have one of the applicable toolboxes so I cannot experiment with this.
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!