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

 採用された回答

najosac
najosac 2022 年 11 月 23 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange编程 についてさらに検索

タグ

質問済み:

2022 年 11 月 23 日

回答済み:

2022 年 11 月 23 日

Community Treasure Hunt

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

Start Hunting!