MATLAB: Change points name when plot figure hello so I have a some data plot(tspend) Is there anyway that I can change the X,Y values at each point etc something like X a Y b where a=1; b=1; Best Answer See datatip(): https://www.mathworks.com/help/matlab/ref/matlab.graphics.datatip.datatip.html and this link: https://www.mathworks.com/help/matlab/creating_plots/create-custom-data-tips.html to find out how to customize the content of data tips. Related SolutionsMATLAB: Changing Name Location of Points You can set backgroundcolor to your labelsx = linspace(0,10);y = sin(x);plot(x,y)text(0.8,0.8,'he','backgroundcolor','r') MATLAB: Plot / names for points I always add a space:strcat({' '},names)Best regards, Michael Related QuestionHow to (cleverly) index points in a plotLabel index/variable name near data pointsNaming variablesVariable nameProperty NameMarking points
Best Answer