Problem with the title of a graph

1 次查看(过去 30 天)
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 个评论
Adriano Filippo Inno
May with the following line:
title(['The graph of ',func2str(fun)])
madhan ravi
madhan ravi 2019-4-2
@Adriano: I suggest you to move your comment to the answer section below.

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2019-4-2
编辑:KSSV 2019-4-2
title('The graph of (x^2-2)')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by