Undefined function 'subtitle' for input arguments of type 'char'.

14 ビュー (過去 30 日間)
Angela Elorence Mining
Angela Elorence Mining 2017 年 1 月 16 日
編集済み: Adam Danz 2020 年 9 月 22 日
Is there any word that I can replace this words in Matlab instead of 'subtitle'. Because I think this script using old version of Matlab which the code was written 11 years ago which is in 2006 and now I'm using MATLAB R2014b.Thanks

回答 (3 件)

Adam Danz
Adam Danz 2020 年 9 月 22 日
編集済み: Adam Danz 2020 年 9 月 22 日
Fast forwarding 3.5 years to the r2020b release, now there is a function named subtitle that sets a subtitle under the main title of a plot and it receives a 'char' (or string) input.
Perhaps the OP used a DeLorean time machine to travel into the future, grabbed the r2020b subplot function, and tried to use it in r2016b.

KSSV
KSSV 2017 年 1 月 16 日
You may want something else, since 'subtitle' doesn't exist...
If you want a title above a figure, use 'title'. If you want a label for X-, Y- or Z-axis, use 'xlabel', 'ylabel' or 'zlabel', respectively.

Walter Roberson
Walter Roberson 2017 年 1 月 16 日
subtitle was never part of MATLAB -- I looked in the documentation archive and in old discussion.
However, subtitle was at one time available in the File Exchange, and a copy of it was posted https://www.mathworks.com/matlabcentral/newsreader/view_thread/30284

カテゴリ

Help Center および File ExchangeTitle についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by