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

 Réponse acceptée

najosac
najosac le 23 Nov 2022

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur 编程 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!