关于求积分的问题。

按照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中文版,不知道这个会不会有影响)

 Accepted Answer

najosac
najosac on 23 Nov 2022

0 votes

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

More Answers (0)

Categories

Find more on 编程 in Help Center and File Exchange

Tags

Asked:

on 23 Nov 2022

Answered:

on 23 Nov 2022

Community Treasure Hunt

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

Start Hunting!