MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   【求助】急,syms 转成数值 (https://www.labfans.com/bbs/showthread.php?t=1717)

oneforsprite 2008-03-17 14:41

【求助】急,syms 转成数值
 
syms b
b='1/2'

怎么把b转成数值0.5; 这样的矩阵怎么转?

ms, 用int 积分出来的是syms 型 分数矩阵, 不能运算地说

zhiwei 2008-03-19 00:25

>> syms b
b='1/2'


b =

1/2

>> str2num(b)

ans =

0.5000

>>


所有时间均为北京时间。现在的时间是 12:43

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.