Which output command is used to output an answer contains variables

1 Ansicht (letzte 30 Tage)
khadijah abushima
khadijah abushima am 11 Dez. 2016
Kommentiert: Rena Berman am 6 Mai 2021
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 Kommentare
Stephen23
Stephen23 am 20 Feb. 2021
Bearbeitet: Stephen23 am 20 Feb. 2021
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 12 Dez. 2016
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 ()

Kategorien

Mehr zu Formula Manipulation and Simplification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by