Problem with the title of a graph

2 vues (au cours des 30 derniers jours)
valerio auricchio
valerio auricchio le 2 Avr 2019
Commenté : madhan ravi le 2 Avr 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 commentaires
Adriano Filippo Inno
Adriano Filippo Inno le 2 Avr 2019
May with the following line:
title(['The graph of ',func2str(fun)])
madhan ravi
madhan ravi le 2 Avr 2019
@Adriano: I suggest you to move your comment to the answer section below.

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 2 Avr 2019
Modifié(e) : KSSV le 2 Avr 2019
title('The graph of (x^2-2)')

Plus de réponses (0)

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by