MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB GUI] 求助:GUI中曲线交点坐标的输出 (https://www.labfans.com/bbs/showthread.php?t=9389)

endeavor_li 2009-08-06 08:28

求助:GUI中曲线交点坐标的输出
 
我想请教一个问题:我想把两条曲线的交点坐标输出到GUI上的edit_text中,我的想法是通过联立求解两个方程,得出结果,因而用了solve函数,但是不知道为什么就是不能显示呢?我编写的代码:a=solve('y=x^2','x+y=1');
set(handles.edit1,'String', strcat('(',num2str(a.x), ',num2str(a.y))');

我关键 想知道solve函数到底可不可以这样用呢?:confused:

xsprinkle 2009-08-07 17:30

回复: 求助:GUI中曲线交点坐标的输出
 
运行有解得啊?不显示的原因可能是解出的数值无法转换为字符串吧(精度太高了)


所有时间均为北京时间。现在的时间是 13:31

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