How can I use "spy" at AppDesigner
조회 수: 5 (최근 30일)
이전 댓글 표시
I'd like use "spy" type graph at appdesigner.
So I called "spy" function to draw the result in the appdesigner but it was drawn on the other window.
questions :
- Does appdesigner support "spy" ?
- if not, how can I use spy type graph at appdesigner?
appreciate if I have any help.
Peter
댓글 수: 2
Giuseppe Bellisano
2019년 8월 13일
I had the same problem. Read this: https://it.mathworks.com/matlabcentral/answers/472255-how-can-i-use-spy-at-appdesigner
I simply used in my app designer code:
Figures (1);
spy (A);
The problem is that the graph is drawn in a different window
채택된 답변
Abhilash Padma
2019년 8월 1일
1)App designer doesn’t support “Spy” directly.
2)You can use the plot in app designer to draw spy type graph. See the following code where I have used plot to draw “spy” type graph which may help solve your problem.
S=bucky;
ax=axes;
[i,j] = find(S);
[m,n] = size(S);
plot(ax,j,i,'marker','.','markersize',6,'linestyle','none');
xlabel(ax,['nz = ' int2str(nnz(S))]);
set(ax,'xlim',[0 n+1],'ylim',[0 m+1],'ydir','reverse','plotboxaspectratio',[n+1 m+1 1]);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!