Why to use vpa instead of double in dealing with symbolic variables?
6 次查看（过去 30 天）
Hello, I have a matrix in symbolic form and I want to convert it or display it as float. How to do this? Here is my simple code:
syms X Y
F=[(50*Y)/3 + 127/120, (50*X)/3 + 31/1000;54*Y - 319/600, 54*X + 917/1000];
However matlab gives error for last line and I have to use vpa. I don't want to display F as having fractions, so I want to convert it to float. Anyone having any comments?