How to use string as data for plotting in Matlab?

后端 未结 4 1079
轮回少年
轮回少年 2020-12-09 04:42

I want to use a words like, let\'s say, \'A\', \'B\' and \'C\' on X-axis to show their corresponding properties on Y-axis. How can I write these strings on X-axis instead of

4条回答
  •  星月不相逢
    2020-12-09 05:37

    You can also do this using the GUI.

    1) Click on the figure axes to to open the Axes Property Editor.

    2) Click on the "More properties" button on the right side of the window. This will open the inspector window of the axes.

    3) Click on the small button next to "XTickLabel" property to open the dialogue box as shown below. enter image description here

    4) Enter the labels you want and click on "OK".

提交回复
热议问题