24小时热门版块排行榜    

CyRhmU.jpeg
查看: 1295  |  回复: 5
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

1970-01-01 08:00:00
已阅   申请程序强帖   回复此楼   编辑   查看我的主页

智能机器人

Robot (super robot)

我们都爱小木虫

dbb627

荣誉版主 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
cw277(金币+1): 那就求sym('xy'), 拆分成 sym('x'),sym('y') 2011-12-13 11:09:19
引用回帖:
2楼: Originally posted by wqding at 2011-12-13 08:25:57:
提取一个整数的各个位上的值?
a=sym('12');
b=floor(vpa(a/10));
c=a-b*10;
不过这样和sys就没啥关系了,呵呵。

f1=sym('x+y')
f=char(f1)
sym(f(1))
sym(f(5))
sym(f(3))%+号好像不能用sym

f =

x + y


f =

x + y


ans =

x


ans =

y

??? Error using ==> sym.sym>convertExpression at 2515
Error: 'expression' expected [line 1, col 2]

Error in ==> sym.sym>convertChar at 2426
    s = convertExpression(x);

Error in ==> sym.sym>convertCharWithOption at 2410
        s = convertChar(x);

Error in ==> sym.sym>tomupad at 2164
        S = convertCharWithOption(x,a);

Error in ==> sym.sym>sym.sym at 111
                S.s = tomupad(x,'');
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
3楼2011-12-13 09:46:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

wqding

铜虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
cw277(金币+1): 如果是sym('x+y'), 怎么变成sym('x'),sym('+'),sym('y') 2011-12-13 09:17:59
提取一个整数的各个位上的值?
a=sym('12');
b=floor(vpa(a/10));
c=a-b*10;
不过这样和sys就没啥关系了,呵呵。
2楼2011-12-13 08:25:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dbb627

荣誉版主 (著名写手)

【答案】应助回帖

★ ★ ★
余泽成(金币+3): 辛苦了! 2011-12-13 13:19:22
引用回帖:
3楼: Originally posted by dbb627 at 2011-12-13 09:46:19:
f1=sym('x+y')
f=char(f1)
sym(f(1))
sym(f(5))
sym(f(3))%+号好像不能用sym

f =

x + y


f =

x + y


ans =

x


ans =

y

??? Error using ==> sym.sym>convertE ...

f1=sym('x+y')

f1 =

x + y

>> var=findsym(f1)

var =

x,y
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
4楼2011-12-13 11:12:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

cw277

木虫 (正式写手)

cw277: 回帖置顶 2011-12-13 11:15:13
example:

c=sym('x');
d=sym('y');
e=c+d;
这个e怎么逆向得到这个c与d??
感谢生活让我慢慢学会控制自己的情绪,学会包容与忍耐,学会不再去期待
5楼2011-12-13 11:15:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见