Which output command is used to output an answer contains variables

1 回表示 (過去 30 日間)
khadijah abushima
khadijah abushima 2016 年 12 月 11 日
コメント済み: Rena Berman 2021 年 5 月 6 日
Hi
I am using the fprintf command to output an answer that contains some variables .. it's saying that it's not possible to change symfun to char .. is there any other command that I can use
I have tries display and sprints as well.
  3 件のコメント
Stephen23
Stephen23 2021 年 2 月 20 日
編集済み: Stephen23 2021 年 2 月 20 日
Original question by khadijah abushima retrieved from Google Cache:
Which output command is used to output an answer contains variables
Hi
I am using the fprintf command to output an answer that contains some variables .. it's saying that it's not possible to change symfun to char .. is there any other command that I can use
I have tries display and sprints as well.
Rena Berman
Rena Berman 2021 年 5 月 6 日
(Answers Dev) Restored edit

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 12 月 12 日
Call the symfun passing in symbolic variables. The results will be a symbolic expression, which you can char() to create a string that can be used with sprintf ()

カテゴリ

Help Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by