Which output command is used to output an answer contains variables

2 visualizaciones (últimos 30 días)
khadijah abushima
khadijah abushima el 11 de Dic. de 2016
Comentada: Rena Berman el 6 de Mayo de 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 comentarios
Stephen23
Stephen23 el 20 de Feb. de 2021
Editada: Stephen23 el 20 de Feb. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de Dic. de 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 ()

Categorías

Más información sobre Formula Manipulation and Simplification en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by