How to get access to Matlab drawings libraries

조회 수: 1 (최근 30일)
Ced Desm
Ced Desm 2018년 6월 13일
댓글: Walter Roberson 2018년 7월 1일
Hi,
I'd like to develop a man-machine-interface with pre-defined drawings. Has Matlab got libraries of existing drawings and how can I reach them ?
Thanks.
  댓글 수: 3
Walter Roberson
Walter Roberson 2018년 6월 15일
Would they be fixed size? Bitmaps? Vector graphics? Do they need to have editable properties like "Change the angle of that arrowhead, and make the shaft a blue dashed line of width 3? Or "use these as fixed points but let me drag this point around and make the spline curve follow"?
Ced Desm
Ced Desm 2018년 6월 26일
Actually I'd like my drawings follow inputs entered. for instance, if a dialog box asks "What is the length of the line", the user can select a length (e.g. 60m) and a line is drawn with an indication that it is 60m. My issue is that I don't know what kind of drawing is available in Matlab's librairies.

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

답변 (3개)

Ced Desm
Ced Desm 2018년 6월 13일
Basically I'd like to use very simple drawings like lines, grids and arrows. If Matlab does not handle these drawings itself, can it call librairies of another source ?
  댓글 수: 1
Steven Lord
Steven Lord 2018년 6월 13일
What do you want to DO with those simple drawings? Display them, use them as an executable flowchart, use them as part of a GUI, etc.?

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


Ced Desm
Ced Desm 2018년 6월 14일
I'de like to display them.

Walter Roberson
Walter Roberson 2018년 6월 26일
There are a small number of things that could vaguely be said to be "drawing library"-ish in MATLAB:
  • annotation() permits selection of line shape or drawing shape. annotation() draws on the display. Be careful, though: annotations are in figure units, not in data units
  • insertShape() from the Computer Vision toolbox permits lines and shapes to be drawn into an array (not onto the display.) There are a couple of variations of this.
  댓글 수: 2
Ced Desm
Ced Desm 2018년 7월 1일
Hi Walter,
Thank you for this contribution. I went to your liks and they look good. Next time I'm writting you, may I attach a simple sketch with typical shapes I'd like to draw ?
Walter Roberson
Walter Roberson 2018년 7월 1일
Post away.

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by