Prevent evalc('help fun') from outputting HTML when running in terminal
7 ビュー (過去 30 日間)
古いコメントを表示
When running in terminal mode (-nodesktop switch), "help pi" will output a readable message:
>> help pi
PI 3.1415926535897....
PI = 4*atan(1) = imag(log(-1)) = 3.1415926535897....
Reference page in Help browser
doc pi
However, evalc('help pi') will output HTML:
>> evalc('help pi')
ans =
pi 3.1415926535897....
pi = 4*atan(1) = imag(log(-1)) = 3.1415926535897....
Reference page in Help browser
<matlab:doc pi doc pi>
How can I prevent the generation of HTML when using evalc()?
This is not only a problem for documentation text, but also for messages obtained using MException.message.
----
I would also appreciate more information on where MATLAB gets these messages from. There is a pi.m file at toolbox/matlab/elmat/pi.m which contains the plain text version of the message. Is the message actually read from this file? What about the HTML version? It doesn't look like the plain text version contains enough markup to generate the HTML from it, so where does the HTML version come from?
----
My main aim is still to get evalc() to give me the plain text version of messages.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Adding custom doc についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!