Problem with the title of a graph

3 visualizzazioni (ultimi 30 giorni)
valerio auricchio
valerio auricchio il 2 Apr 2019
Commentato: madhan ravi il 2 Apr 2019
I want to write on the title pf the graph the function that i'm plotting, the function is insert in the command window.
fun=x^2-2;
title(['The graph of ',fun])
  2 Commenti
Adriano Filippo Inno
Adriano Filippo Inno il 2 Apr 2019
May with the following line:
title(['The graph of ',func2str(fun)])
madhan ravi
madhan ravi il 2 Apr 2019
@Adriano: I suggest you to move your comment to the answer section below.

Accedi per commentare.

Risposta accettata

KSSV
KSSV il 2 Apr 2019
Modificato: KSSV il 2 Apr 2019
title('The graph of (x^2-2)')

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by