vpa command to display into digit
조회 수: 5(최근 30일)
표시 이전 댓글
yogeshwari patel 2021년 12월 26일
답변: Srivardhan Gadila 2021년 12월 31일
syms x t
row = 0;
row = row + 1;
col = 0;
col = col + 1;
I want to vale on the word document .In workspace the value is symbolic fform .Can it be stored in numeric form so that i can copy it directly to word document.
댓글 수: 1
David Hill 2021년 12월 26일
I don't understand your question. Why not just copy and paste it into the word document?
Srivardhan Gadila 2021년 12월 31일
When I executed the above code, I was able to copy and paste the result from the command window, even though the class of the result is "sym". But if you access the result value from the Variables editor, then you will not be able to do the same. In this case you can typecast the output of the result to double or single class as per your usecase.
res = vap(C1,15)
resDouble = double(res)
Note that it may not work for all the cases depending on the symbolic expression.
댓글 수: 0
Find more on Number Theory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!