Why function handle is not readable when display it?
古いコメントを表示
I have a function handle which is the resutlf of lots of algebric work and it is long. When I display it in the command window it is very messy (fbelow):

This makes it hard to get the list of arguments input to the function. How can I dislay/print the function hangdle in a more readable format? Currently, I do this:
s = function(my_func)
and then I look at the Variable s:

I should note the output of function handle is correct, it is just the messy display that is annoying.
Thanks
8 件のコメント
the cyclist
2023 年 1 月 30 日
Strange. Can you share the code where you define the function?
the cyclist
2023 年 1 月 30 日
編集済み: the cyclist
2023 年 1 月 30 日
I edited your reply to execute your code here. Seems to display fine. (Displays well on my local machine as well.)
I guess it could be a version-specific problem, or some setting preference you have. Have you tried the simple solutions, such as restarting MATLAB and/or your machine?
hamid
2023 年 1 月 30 日
hamid
2023 年 1 月 30 日
ABDOLHAMID DASHTIAHANGAR
2023 年 1 月 30 日
Update- OK, I tried with the Matlab 2022b and still the problem exist! The equations show very messy in my command line. I use Ubuntu, could it be beacuse of that?
Adam Danz
2023 年 1 月 30 日
Please contact tech support and include instructions how to reproduce the problem and information about your OS/machine.
ABDOLHAMID DASHTIAHANGAR
2023 年 1 月 30 日
Problem solved! I had to go to the preference and turn on the "wrap lines" in Command Window settings. Now everything looks ok!
回答 (1 件)
ABDOLHAMID DASHTIAHANGAR
2023 年 1 月 30 日
1 投票
Go to Preferences--> Command Window and check the "wrap lines" option.
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
