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 CenterFile Exchange에서 Formula Manipulation and Simplification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by