How to plot arrow with data coordinates in Matlab?

后端 未结 8 1939
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 19:37

I know there is a function named annotation can plot arrows or double arrows. But annotation can only plot in normalized unit. For example:

annotation(\'arro         


        
8条回答
  •  醉话见心
    2020-12-13 20:16

    For the positioning of annotations, Matlab offers the function dsxy2figxy to convert data space points to normalized space coordinates. However, for whatever reasons, the function is not included in the Matlab distribution and has to be "created" first.

    Copy the following line into the command window and execute it to open the function in your editor.

    edit(fullfile(docroot,'techdoc','creating_plots','examples','dsxy2figxy.m'))
    

    To use the function dsxy2figxy save it somewhere in your matlab search path.

    Please find the full instructions for the function dsxy2figxy at matlab-central: http://www.mathworks.de/help/techdoc/creating_plots/bquk5ia-1.html

提交回复
热议问题