📄 exa3_16.m
字号:
f=sym('a*x^2+b*x+c') % create a function f(x)
subs(f,'s','x') % substitute ‘s’ for ‘x’ in the expression f
subs(f,'alpha','a') % substitute ‘alpha’ for ‘a’ in f
g=sym('3*x^2+5*x-4') % create another function
h=subs(g,'x','2') % substitute '2’for ‘x’ in g
isstr(h) % show that the result is a symbolic expression
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -