How can I use a customized figure-function to show over UIAxes in app designer?

조회 수: 1 (최근 30일)
Dear All,
I am using the SeqLogoFig (attached) to convert my sequences to a logo (https://www.mathworks.com/matlabcentral/fileexchange/27124-seqlogofig). I have found that in the file exchange webpage.
I have used this over the GUIDE GUI but now need to use this in the app designer. I use the folowing lines but it shows error. Would you please help me to resolve this issue and make my code line correct?
Many thanks in advance.
MS
sequence = {'IANTRTHTY','ISNPTRHVY','IAVKVNHSY','SSKEDNPKW','VTYKNVPNW','GIYKVVKYW','KAALLIQKY','VAHELAHQW','TAYEKINKW','STYPRPHEY','IAHELAHQW','MTNGFHMTW','KSSLTQHSW','SSKYAPHSW','VMDVQYNKF','HSVLIHEYY','GTHTVSVKY','MVTTVPHVF','HFDLSHGSA','KSDVHLNFY','TTKQQDHFF','VGKIEHSFW','ATHVLPLHW','LANKTPHTW','HVVEQHWEW','SSLRVPSQW','TTKFIVDGW','SSLQKTPVW','MTSGHWQHY','TAKALQAHW','LAKTGVHHY','GTLKGHNGW','KSVTAFFKW','FVKKLEHSW','YTDNLVRVW','QSYVLVKKW','TTHNQSRKW','STDGHLRVW','VFDHPWETV','VYDVRQAYV','HTILTEKNW','AADSAVRLW'}';
SeqLogoFig(app.UIAxes,sequence,'alphabet','aa','cutoff',0.75,'top-n',9);
*Error:
Error using seqlogo (line 109)
Incorrect number of arguments to seqlogo.
Error in SeqLogoFig (line 83)
wm = seqlogo(SEQ, varargin{:}, 'displaylogo', false);

채택된 답변

Pavan Guntha
Pavan Guntha 2021년 7월 28일
Hi Mohammad,
You could look at the following code snippet:
SeqLogoFig(sequence,'AXES_HANDLE',app.UIAxes,'alphabet','aa','cutoff',0.75,'top-n',9);
'SeqLogoFig.m' is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Feel free to contact the author of this submission directly for specific questions about the implementation
Hope this helps!
  댓글 수: 1
Mohammad Shahbazy
Mohammad Shahbazy 2021년 7월 28일
편집: Mohammad Shahbazy 2021년 7월 28일
Hi Pavan,
Thanks a lot for you reply. I tried this, it can set the figure over the UIAxes but showing in an inverse form! Besides, it prompts a new figure window with axis labels and ticks (both attached). I am just wondering if I could prevent prompting new window and plot it in a normal mode.
I tried to contact the author but still not received any reply.
Best regards,
Mohammad

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by