MATLAB Answers

Which output command is used to output an answer contains variables

2 views (last 30 days)
khadijah abushima
khadijah abushima on 11 Dec 2016
Commented: Rena Berman on 6 May 2021
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.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 12 Dec 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 ()

Community Treasure Hunt

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

Start Hunting!

Translated by