按照Matlab手册上的示例:
Example 1
Compute the indefinite integrals and :
int(1/x/ln(x), x)
复制粘贴后的计算却出现了问题:
>> int(1/x/ln(x), x)
Undefined function or variable 'x'.
>>
请教,这问题是出在哪里?
(ps查看了手册中函数的保存路径,我的电脑里面没有该路径,似乎也没有这个文件;我是win8中文版,不知道这个会不会有影响)

 Akzeptierte Antwort

najosac
najosac am 23 Nov. 2022

0 Stimmen

错误提示已经告诉你了: Undefined function or variable 'x'. 意思是,变量 x 未定义。
一般批量定义符号变量用 syms 函数, 这样就可以了:
syms x
int(1/x/log(x), x)

Weitere Antworten (0)

Kategorien

Mehr zu 编程 finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 23 Nov. 2022

Beantwortet:

am 23 Nov. 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!