Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Insert Text in plot

Asked by Amit Kalhapure

Amit Kalhapure (view profile)

on 23 Nov 2012

Hi,

 I want to insert text at particular intervals in a plot.  What command should I use?

Amit

2 Comments

Amit Kalhapure

Amit Kalhapure (view profile)

on 24 Nov 2012

What if the text is a value from array ?

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 24 Nov 2012

use

 text(x,y,num2str(yourvalue))
Amit Kalhapure

Amit Kalhapure (view profile)

Tags

Products

1 Answer

Answer by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 23 Nov 2012
Edited by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 23 Nov 2012
Accepted answer
 text(x,y,'yourtext')

0 Comments

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

Contact us