Clear Filters
Clear Filters

Problem with the title of a graph

3 views (last 30 days)
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 Comments
Adriano Filippo Inno
Adriano Filippo Inno on 2 Apr 2019
May with the following line:
title(['The graph of ',func2str(fun)])
madhan ravi
madhan ravi on 2 Apr 2019
@Adriano: I suggest you to move your comment to the answer section below.

Sign in to comment.

Accepted Answer

KSSV
KSSV on 2 Apr 2019
Edited: KSSV on 2 Apr 2019
title('The graph of (x^2-2)')

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!