Which output command is used to output an answer contains variables
조회 수: 1 (최근 30일)
이전 댓글 표시
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
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.
답변 (1개)
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 ()
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!